|
Message-ID: <Zh1IcvB2TL4dItr9@remnant.pseudorandom.co.uk> Date: Mon, 15 Apr 2024 16:32:02 +0100 From: Simon McVittie <smcv@...ian.org> To: oss-security@...ts.openwall.com Subject: Re: Linux: Disabling network namespaces On Sun, 14 Apr 2024 at 21:08:55 +0200, Solar Designer forwarded: > Some other container runtimes such as Docker and Podman do make use > of network namespaces by default. As an example of a less traditional container environment, Flatpak optionally uses network namespaces (as implemented by bubblewrap, bwrap(1)) to isolate apps from the network, and disabling network namespaces will break the ability to run apps that have `--unshare=network` in their manifests. I believe it will "fail closed" in this situation (refusing to run the affected app, rather than running the app but giving it unintended network access). A workaround would be to run the affected apps with `flatpak run --share=network ...`, or permanently reconfigure their sandboxing parameters with `flatpak override --share=network ...`, but either of those workarounds would remove the network isolation feature and give the affected apps unrestricted network access. Similarly, libgnome-desktop uses bubblewrap to run sandboxed thumbnailers with no network access, mitigating vulnerabilities that might exist in thumbnailers or the libraries that they use. Again, I believe it will "fail closed", but I haven't checked. Similarly, WebKitGTK uses bubblewrap to sandbox parts of itself with no network access, xdg-desktop-portal uses bubblewrap for sandboxed icon validation, and I'm sure there are others. (<https://codesearch.debian.net/search?q=--unshare-net>) So I suspect that the mitigation of disabling network namespaces is likely to be too disruptive to be applicable on desktops, and only useful on servers. smcv
Powered by blists - more mailing lists
Please check out the Open Source Software Security Wiki, which is counterpart to this mailing list.
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.