mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-12-26 15:06:45 +01:00
feat(profile): ip: improve support for network ns.
This commit is contained in:
parent
3c0b83d1b0
commit
d30b673e99
1 changed files with 8 additions and 7 deletions
|
@ -20,19 +20,20 @@ profile ip @{exec_path} flags=(attach_disconnected) {
|
||||||
|
|
||||||
network netlink raw,
|
network netlink raw,
|
||||||
|
|
||||||
mount options=(rw, bind, rshared) -> /{var/,}run/netns/,
|
mount options=(rw, rshared) -> @{run}/netns/,
|
||||||
mount options=(rw, rslave) -> /,
|
mount options=(rw, rslave) -> /,
|
||||||
mount options=(rw, bind) / -> /{var/,}run/netns/*,
|
mount options=(rw, bind) @{att}/ -> @{run}/netns/*,
|
||||||
mount options=(rw, bind) /etc/netns/firefox/resolv.conf -> /etc/resolv.conf,
|
mount options=(rw, bind) /etc/netns/*/resolv.conf -> /etc/resolv.conf,
|
||||||
mount fstype=sysfs -> /sys/,
|
mount fstype=sysfs -> /sys/,
|
||||||
|
|
||||||
umount @{run}/netns/*,
|
umount @{run}/netns/*,
|
||||||
umount /sys/,
|
umount /sys/,
|
||||||
|
|
||||||
@{exec_path} mrix,
|
@{exec_path} mrix,
|
||||||
@{sh_path} rix,
|
@{shells_path} rUx,
|
||||||
|
@{bin}/sudo rPx,
|
||||||
|
|
||||||
/ r,
|
@{att}/ r,
|
||||||
|
|
||||||
/etc/iproute2/{,**} r,
|
/etc/iproute2/{,**} r,
|
||||||
/etc/netns/*/ r,
|
/etc/netns/*/ r,
|
||||||
|
|
Loading…
Reference in a new issue