mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 00:48:10 +01:00
parent
9afb6b93ef
commit
a4dd6d52cd
1 changed files with 6 additions and 4 deletions
|
@ -19,18 +19,20 @@ profile slirp4netns @{exec_path} flags=(attach_disconnected) {
|
|||
network inet dgram,
|
||||
network inet6 dgram,
|
||||
|
||||
mount options=(rw, make-slave) -> **,
|
||||
mount options=(rw, make-rslave) -> **,
|
||||
mount options=(ro, nosuid, nodev, noexec, remount, bind) -> **,
|
||||
# TODO: Restrict this a bit
|
||||
mount,
|
||||
umount,
|
||||
|
||||
pivot_root oldroot=/tmp/old/ -> /tmp/,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/tmp/{,**} rw,
|
||||
/old/ rw,
|
||||
|
||||
owner @{run}/user/@{uid}/libpod/tmp/slirp4netns-*.log r,
|
||||
@{run}/user/@{uid}/netns-@{uid} r,
|
||||
@{run}/user/@{uid}/netns/cni-* r,
|
||||
owner @{run}/user/@{uid}/libpod/tmp/slirp4netns-*.log r,
|
||||
|
||||
pivot_root /tmp/**,
|
||||
pivot_root /tmp/old/,
|
||||
|
|
Loading…
Reference in a new issue