feat(profile): improve rootless container support

See: #101
This commit is contained in:
Alexandre Pujol 2023-04-24 15:43:19 +01:00
parent 9afb6b93ef
commit a4dd6d52cd
Failed to generate hash of commit

View file

@ -19,18 +19,20 @@ profile slirp4netns @{exec_path} flags=(attach_disconnected) {
network inet dgram, network inet dgram,
network inet6 dgram, network inet6 dgram,
mount options=(rw, make-slave) -> **, # TODO: Restrict this a bit
mount options=(rw, make-rslave) -> **, mount,
mount options=(ro, nosuid, nodev, noexec, remount, bind) -> **,
umount, umount,
pivot_root oldroot=/tmp/old/ -> /tmp/,
@{exec_path} mr, @{exec_path} mr,
/tmp/{,**} rw, /tmp/{,**} rw,
/old/ rw, /old/ rw,
owner @{run}/user/@{uid}/libpod/tmp/slirp4netns-*.log r, @{run}/user/@{uid}/netns-@{uid} r,
@{run}/user/@{uid}/netns/cni-* r, @{run}/user/@{uid}/netns/cni-* r,
owner @{run}/user/@{uid}/libpod/tmp/slirp4netns-*.log r,
pivot_root /tmp/**, pivot_root /tmp/**,
pivot_root /tmp/old/, pivot_root /tmp/old/,