feat(profile): restrict some access to @{PROC}/@{pid}.

This commit is contained in:
Alexandre Pujol 2024-09-25 14:00:29 +01:00
parent 90a8e44d20
commit 28b32f1ae3
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
10 changed files with 31 additions and 22 deletions

View file

@ -91,9 +91,10 @@ profile gnome-session-binary @{exec_path} flags=(attach_disconnected) {
@{sys}/devices/**/{vendor,device} r,
@{PROC}/@{pid}/cgroup r,
@{PROC}/1/cgroup r,
@{PROC}/cmdline r,
@{PROC}/sys/net/ipv{4,6}/conf/all/disable_ipv{4,6} r,
owner @{PROC}/@{pid}/cgroup r,
owner @{PROC}/@{pid}/cmdline r,
owner @{PROC}/@{pid}/fd/ r,
owner @{PROC}/@{pid}/loginuid r,