Skip to content

Commit

Permalink
fix(profile): minor fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
roddhjav committed Nov 13, 2024
1 parent 194d181 commit b4bcb2f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions apparmor.d/profiles-g-l/ip
Original file line number Diff line number Diff line change
Expand Up @@ -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/,
Expand Down
2 changes: 1 addition & 1 deletion apparmor.d/profiles-s-z/sync
Original file line number Diff line number Diff line change
Expand Up @@ -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>
}
Expand Down

0 comments on commit b4bcb2f

Please sign in to comment.