feat(profiles): general update.

This commit is contained in:
Alexandre Pujol 2022-07-10 14:28:44 +01:00
parent c0e62f30bb
commit 23642eb0be
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
14 changed files with 39 additions and 18 deletions

View file

@ -13,12 +13,11 @@ profile ip @{exec_path} flags=(attach_disconnected) {
include <abstractions/consoles>
capability net_admin,
capability sys_admin,
capability sys_module,
network netlink raw,
@{exec_path} mrix,
mount options=(rw, rshared) -> /{var/,}run/netns/,
mount options=(rw, rslave) -> /,
mount options=(rw, bind) / -> /{var/,}run/netns/*,
@ -28,12 +27,15 @@ profile ip @{exec_path} flags=(attach_disconnected) {
umount @{run}/netns/*,
umount /sys/,
/etc/iproute2/{,**} r,
@{exec_path} mrix,
/ r,
/etc/iproute2/{,**} r,
/etc/netns/*/ r,
owner @{run}/netns/ rw,
@{run}/netns/* rw,
/etc/netns/*/ r,
owner @{PROC}/@{pid}/cgroup r,
owner @{PROC}/@{pid}/net/dev_mcast r,