mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-19 01:18:16 +01:00
parent
e6b1763bbc
commit
30999904e7
4 changed files with 9 additions and 2 deletions
|
@ -34,6 +34,7 @@ profile upowerd @{exec_path} flags=(attach_disconnected) {
|
|||
@{run}/udev/data/+input:input@{int} r, # for mouse, keyboard, touchpad
|
||||
@{run}/udev/data/+pci:* r, # Identifies all PCI devices (CPU, GPU, Network, Disks, USB, etc.)
|
||||
@{run}/udev/data/+platform:* r,
|
||||
@{run}/udev/data/+serio:* r, # for serial mice
|
||||
@{run}/udev/data/+power_supply* r,
|
||||
@{run}/udev/data/+sound:card@{int} r, # for sound card
|
||||
@{run}/udev/data/c10:@{int} r, # for non-serial mice, misc features
|
||||
|
|
|
@ -11,6 +11,7 @@ profile xwayland @{exec_path} flags=(attach_disconnected) {
|
|||
include <abstractions/base>
|
||||
include <abstractions/graphics>
|
||||
include <abstractions/nameservice-strict>
|
||||
include <abstractions/wayland>
|
||||
include <abstractions/X-strict>
|
||||
|
||||
signal (receive) set=(term hup) peer=gdm*,
|
||||
|
|
|
@ -97,8 +97,9 @@ profile libreoffice @{exec_path} {
|
|||
@{sys}/kernel/mm/hugepages/ r,
|
||||
@{sys}/kernel/mm/transparent_hugepage/enabled r,
|
||||
@{sys}/kernel/mm/transparent_hugepage/shmem_enabled r,
|
||||
owner @{sys}/fs/cgroup/user.slice/user-@{int}.slice/user@@{int}.service/app.slice/**/memory.max r,
|
||||
owner @{sys}/fs/cgroup/user.slice/user-@{int}.slice/user@@{int}.service/session.slice/org.gnome.Shell@wayland.service/memory.max r,
|
||||
@{sys}/fs/cgroup/user.slice/user-@{uid}.slice/session-@{int}.scope/{cpu,memory}.max r,
|
||||
owner @{sys}/fs/cgroup/user.slice/user-@{uid}.slice/user@@{uid}.service/app.slice/**/memory.max r,
|
||||
owner @{sys}/fs/cgroup/user.slice/user-@{uid}.slice/user@@{uid}.service/session.slice/org.gnome.Shell@wayland.service/memory.max r,
|
||||
|
||||
@{PROC}/cgroups r,
|
||||
owner @{PROC}/@{pid}/cgroup r,
|
||||
|
|
|
@ -76,6 +76,10 @@ profile mpv @{exec_path} {
|
|||
@{sys}/devices/**/input/**/uevent r,
|
||||
@{sys}/devices/**/sound/**/capabilities/* r,
|
||||
@{sys}/devices/**/sound/**/uevent r,
|
||||
@{sys}/devices/virtual/dmi/id/bios_vendor r,
|
||||
@{sys}/devices/virtual/dmi/id/board_vendor r,
|
||||
@{sys}/devices/virtual/dmi/id/product_name r,
|
||||
@{sys}/devices/virtual/dmi/id/sys_vendor r,
|
||||
|
||||
/dev/input/event@{int} r,
|
||||
owner /dev/tty@{int} rw,
|
||||
|
|
Loading…
Reference in a new issue