sandboxing: design-notes #9
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
https://pad.gnome.org/cJEvNbuQRN2WpN3iQLlhhA#BTO-7---Flatpak-v2-Topic
networking
There are three types of networking usecases really simplified (hopefully):
The daemons operating on physical hardware/vpns may require communication with other services. (iwd with ofono, modemmanager with geoclue and vowifi).
There are a bunch of different ways to approach this problem. I suggest a netns based one, the main drawback being that it's really important to not loopback packets in this setup. Careful routing tables should help with this, another approach maybe tagging the traffic and then filter it out (BPF?).
Special care needs to be taken with applications which expect to configure their own firewalls.
docker/podman,firewalld/ufw,wg-quick/other calling nft/iptables directly.Existing networking daemons:
networkmanager,systemd-networkd.systemd-resolvedcan probably be spawned per namespace.In general it can't be assumed that applications know how to handle /etc/netns/self/{resolv.conf, hosts}, so overmounting is required -> integration into systemd-run/bubblewrap is needed?