feat(profile): initial integration with attached path.
The feature is not yet enabled. See https://apparmor.pujol.io/development/internal/#re-attached-path
This commit is contained in:
parent
5bf8c6ef0f
commit
61a27bc336
85 changed files with 164 additions and 139 deletions
|
|
@ -25,7 +25,7 @@ profile mission-control @{exec_path} flags=(attach_disconnected) {
|
|||
owner @{user_config_dirs}/libaccounts-glib/accounts.db{,-shm,-wal} rwk,
|
||||
owner @{user_cache_dirs}/.mc_connections rw,
|
||||
|
||||
@{run}/systemd/inhibit/@{int}.ref rw,
|
||||
@{att}/@{run}/systemd/inhibit/@{int}.ref rw,
|
||||
|
||||
include if exists <local/mission-control>
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,7 +23,8 @@ profile nvtop @{exec_path} flags=(attach_disconnected) {
|
|||
|
||||
owner @{user_config_dirs}/nvtop/{,**} rw,
|
||||
|
||||
@{run}/systemd/inhibit/@{int}.ref rw,
|
||||
@{att}/@{run}/systemd/inhibit/@{int}.ref rw,
|
||||
|
||||
@{run}/udev/data/+drm:card@{int}-* r, # for screen outputs
|
||||
@{run}/udev/data/+pci:* r, # Identifies all PCI devices (CPU, GPU, Network, Disks, USB, etc.)
|
||||
@{run}/udev/data/c226:@{int} r, # For /dev/dri/card*
|
||||
|
|
|
|||
|
|
@ -94,7 +94,8 @@ profile packagekitd @{exec_path} flags=(attach_disconnected) {
|
|||
owner @{tmp}/apt-changelog-@{rand6}/.apt-acquire-privs-test.@{rand6} rw,
|
||||
owner @{tmp}/packagekit* rw,
|
||||
|
||||
@{run}/systemd/inhibit/@{int}.ref rw,
|
||||
@{att}/@{run}/systemd/inhibit/@{int}.ref rw,
|
||||
|
||||
owner @{run}/systemd/users/@{uid} r,
|
||||
|
||||
#aa:only opensuse
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ profile psi @{exec_path} {
|
|||
owner @{tmp}/etilqs_@{hex16} rw,
|
||||
owner @{tmp}/Psi.* rwl -> /tmp/#@{int},
|
||||
|
||||
@{run}/systemd/inhibit/@{int}.ref rw,
|
||||
@{att}/@{run}/systemd/inhibit/@{int}.ref rw,
|
||||
|
||||
owner @{PROC}/@{pid}/cmdline r,
|
||||
owner @{PROC}/@{pid}/mountinfo r,
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ profile psi-plus @{exec_path} {
|
|||
owner @{tmp}/etilqs_@{hex16} rw,
|
||||
owner @{tmp}/Psi+.* rwl -> /tmp/#@{int},
|
||||
|
||||
@{run}/systemd/inhibit/@{int}.ref rw,
|
||||
@{att}/@{run}/systemd/inhibit/@{int}.ref rw,
|
||||
|
||||
owner @{PROC}/@{pid}/cmdline r,
|
||||
owner @{PROC}/@{pid}/mountinfo r,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue