fix(profile): minor fixes.

This commit is contained in:
Alexandre Pujol 2024-11-13 13:31:06 +00:00
parent 194d18191e
commit b4bcb2f16e
Failed to generate hash of commit
2 changed files with 6 additions and 4 deletions

View file

@ -20,11 +20,13 @@ profile ip @{exec_path} flags=(attach_disconnected) {
network netlink raw,
mount options=(rw, rshared) -> @{run}/netns/,
mount options=(rw, rslave) -> /,
mount fstype=sysfs -> /sys/,
mount options=(rw bind) / -> @{run}/netns/*,
mount options=(rw rbind) @{run}/netns/ -> @{run}/netns/,
mount options=(rw, bind) @{att}/ -> @{run}/netns/*,
mount options=(rw, bind) /etc/netns/*/resolv.conf -> /etc/resolv.conf,
mount fstype=sysfs -> /sys/,
mount options=(rw, rshared) -> @{run}/netns/,
mount options=(rw, rslave) -> /,
umount @{run}/netns/*,
umount /sys/,

View file

@ -14,7 +14,7 @@ profile sync @{exec_path} {
@{exec_path} mr,
# All paths where sync can be used to flush all write operations on a single file to disk
/** rw,
/{,**} rw,
include if exists <local/sync>
}