Readit News logoReadit News
thefr0g commented on Hackerrank DMCA Notice   github.com/github/dmca/bl... · Posted by u/captn3m0
MadcapJake · 4 years ago
How will another centralized git host solve for US DMCA protection?
thefr0g · 4 years ago
He probably meant https://gitea.io ;)
thefr0g commented on Hackerrank DMCA Notice   github.com/github/dmca/bl... · Posted by u/captn3m0
xyzal · 4 years ago
I just checked another link on archive.org that really just explains how to do linear interpolation of a missing array element from neighboring elements. This is insane. GH should really be considered a potential single point of failure now.
thefr0g · 4 years ago
> GH should really be considered a potential single point of failure now.

now…

thefr0g commented on Despite having just 5.8% sales, over 38% of bug reports come from Linux   old.reddit.com/r/gamedev/... · Posted by u/otreblan
wheels · 4 years ago
Yes, it is a VST plugin (and standalone), and amusingly probably works better in Wine than Native, aside from the fonts being craptastic. Containerized distribution doesn't really work for plug-ins.

This is the first time I'm reading of Pipewire, and it sounds promising, but will need to have host support before it becomes a reasonable VST / LADSPA replacement. (I didn't see if that's among its goals, but such would seem reasonable.)

thefr0g · 4 years ago
> Yes, it is a VST plugin

Shouldn't that be the easiest way to distribute audio software for linux? It's just a static shared library and maybe some data.

> This is the first time I'm reading of Pipewire, and it sounds promising, but will need to have host support before it becomes a reasonable VST / LADSPA replacement.

I'm pretty sure they didn't mention pipewire as a replacement for vst or lv2 (or ladspa lol). It's benefit would be for your standalone since it supports alsa, jack and pulseaudio clients and can get decent latency.

thefr0g commented on Harden and secure browsers in containers, with GUI   crlf.link/log/entries/211... · Posted by u/croqaz
easygenes · 4 years ago
Well, in the case of WSLg the sandbox is WSL itself (and you can spin up multiple different ones, though they'd hardly qualify as micro VMs). The only part that "only works on Windows" is the RDP client. The rest is specifically developed for Linux and open source. The backend is an extension of FreeRDP, so presumably the FreeRDP client would be just fine on Linux.
thefr0g · 4 years ago
> The only part that "only works on Windows" is the RDP client.

Ah ok, I thought they have an X server running under windows, but apparently not. (Was that in some previous version? I remember reading that.)

> so presumably the FreeRDP client would be just fine on Linux.

Memory sharing would need support by the hypervisor I guess, that probably means hacking FreeRDP, rdp-wayland-backend and the hypervisor :\

thefr0g commented on Harden and secure browsers in containers, with GUI   crlf.link/log/entries/211... · Posted by u/croqaz
easygenes · 4 years ago
Also, xpra and waypipe are developed with the intent of being used remotely. They do not have any zero-copy provisions to reduce latency and overhead on local-only applications, like you would get with at least the virtio_wl and WSLg approaches.
thefr0g · 4 years ago
I didn't know virtio_wl, it looks pretty neat. WSLg doesn't seem to have too much focus on sandboxing and only works on windows :(
thefr0g commented on Harden and secure browsers in containers, with GUI   crlf.link/log/entries/211... · Posted by u/croqaz
easygenes · 4 years ago
As mentioned to open, containers within VMs are a security standard for cloud-native when security is critical.

x11docker is just a (very convenient) security layer for containers which need to expose graphics (and possibly webcam, audio, networking, clipboard, printers...). Kata Containers are just "micro VMs" where you spin up a separate kernel to drop the container into.

Bubblewrap is okay if you trust your kernel, but locking the app away in its own VM with its own kernel gives another layer to bust through.

thefr0g · 4 years ago
> x11docker is just a (very convenient) security layer for containers which need to expose graphics (and possibly webcam, audio, networking, clipboard, printers...). Kata Containers are just "micro VMs" where you spin up a separate kernel to drop the container into.

Yeah, thats what I meant, you can just use kvm and your gui/audio/etc. stuff directly instead of having all the unnessecary complexity and dependency those layers bring along.

> Bubblewrap is okay if you trust your kernel

Thats why I proposed it for when you don't need virtualisation. You can ofc also use it in a VM to further restrict processes.

thefr0g commented on Harden and secure browsers in containers, with GUI   crlf.link/log/entries/211... · Posted by u/croqaz
easygenes · 4 years ago
I was just looking into various approaches to use process isolation for security on the desktop in Linux.

Containers within VMs are a norm for security in cloud-native [1]. Some lessons there could be applied to desktop.

One option is the approach of Spectrum OS [2]. They use crosvm (same as what Firecracker "micro VMs" uses) and virtio_wl [3][4].

Another approach might be x11docker [5] with Kata Containers [6].

Curiously, the work for WSLg (WSL with graphics) [7][8] to support graphical Linux guest VMs could also be applied on a Linux host.

  1: https://archive.fosdem.org/2020/schedule/event/kernel_address_space_isolation/attachments/slides/3889/export/events/attachments/kernel_address_space_isolation/slides/3889/Address_Space_Isolation_in_the_Linux_Kernel.pdf
  2: https://spectrum-os.org/
  3: https://spectrum-os.org/design.html
  4: https://alyssa.is/using-virtio-wl/
  5: https://github.com/mviereck/x11docker
  6: https://katacontainers.io
  7: https://github.com/microsoft/wslg
  8: https://xdc2020.x.org/event/9/contributions/611/attachments/702/1298/XDC2020_-_X11_and_Wayland_applications_in_WSL.pdf

thefr0g · 4 years ago
> Another approach might be x11docker [5] with Kata Containers [6].

Why all the complexity? Just qemu/kvm and xpra, waypipe, whatever would be way simpler and in turn have way smaller of an attack surface. Same if you don't need virtualisation, just use bubblewrap instead of docker etc. It will even give you more fine grained control and you can just use your distributions package manager to keep everything up to date.

thefr0g commented on Harden and secure browsers in containers, with GUI   crlf.link/log/entries/211... · Posted by u/croqaz
usr1106 · 4 years ago
Pulseaudio has network support. You should be able to share your microphone. Of course you need to run pulseaudio inside the container, too. So it's no longer an application container, but a system container.

I used system containers in the past, they are not always easy. No idea whether it would work with podman.

Now that I think about it: The browser obviously uses the display of the host. How? Only over X11 network protocol? That worked in the past, does it still work today? I thought modern browsers would need /dev/dri/? If that is made available, why would Webcams not be possible?

thefr0g · 4 years ago
> Only over X11 network protocol?

If you read the examples you'll see that they mount /tmp/.X11-unix in the container, thats where the X-Sessions Unix domain socket is. You can do the same for pulseaudio. But you shouldn't. Use Wayland and Pipewire if you are actually interested in using this as a security measure, since they are built for sandboxing.

> I thought modern browsers would need /dev/dri/?

They only need it for hw-acceleration. You can also give the container access to it if you need that.

thefr0g commented on World food prices hit 10-year peak – FAO   reuters.com/business/worl... · Posted by u/paulpauper
_gcnk · 4 years ago
No, you absolutely can. Priests are "qualified" through reading religious texts of dubious validity. If anything, they should be trusted less.

I don't know if it's even possible to answer whether a god exists, but it's quite easy to find the flaws in religious stories, and if anyone can answer that question, it's certainly not them.

thefr0g · 4 years ago
So you got what he meant to say?
thefr0g commented on Always-on Processor magic: How Find My works while iPhone is powered off   naehrdine.blogspot.com/20... · Posted by u/todsacerdoti
beckman466 · 4 years ago
And most devices have backdoored CPUs too (Intel ME)

I wonder what the next Crypto AG (CIA front) will be

thefr0g · 4 years ago
> I wonder what the next Crypto AG (CIA front) will be

NSA: VPN and "secure" webmail providers

CIA: They don't need fronts anymore, they have CISCO, Juniper, Netgear, etc.

u/thefr0g

KarmaCake day48July 23, 2021View Original