News for hackers. Stuff that matters.
Re:Harden and secure browsers in containers, with GUI by mfontani on Monday October 11, 2021 @05:40AM (#28826498)
For the (few) docker-based browser containers I use, I simply bind-mount[1] the relative devices and (in Chrome) it all just works.

For Chrome inside a container, I also install the Google Talk plug-in. Unsure if that's still required, but things work well.

[1]: i.e. "--group-add plugdev", "--device /dev/hidraw4", "--device /dev/video4", "--device /dev/snd", "--device /dev/sri" and similar

Re:Harden and secure browsers in containers, with GUI by gigatexal on Monday October 11, 2021 @07:04AM (#28826976)
I almost don't want to ask as I know the answer is likely to be not great but can this also be done on mac?
Re:Harden and secure browsers in containers, with GUI by Arnavion on Monday October 11, 2021 @03:09PM (#28831804)
If they're USB devices, you can try tweaking the docker-machine VM definition in whatever hypervisor your Mac uses, so that the devices are mounted directly in the VM and are thus available to containers.
Re:Harden and secure browsers in containers, with GUI by gigatexal on Monday October 11, 2021 @03:15PM (#28831874)
of course! that's a good idea.