mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 08:58:15 +01:00
feat(profile): update zram generator.
This commit is contained in:
parent
7cb006d20c
commit
18d1ee66a2
1 changed files with 5 additions and 1 deletions
|
@ -11,6 +11,8 @@ profile zram-generator @{exec_path} flags=(attach_disconnected) {
|
|||
include <abstractions/base>
|
||||
include <abstractions/common/systemd>
|
||||
|
||||
capability sys_module,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
@{bin}/kmod rix,
|
||||
|
@ -18,14 +20,16 @@ profile zram-generator @{exec_path} flags=(attach_disconnected) {
|
|||
@{lib}/systemd/systemd-makefs rPx,
|
||||
|
||||
/etc/systemd/zram-generator.conf r,
|
||||
/etc/modprobe.d/{,**} r,
|
||||
|
||||
owner @{run}/systemd/generator/{,*/}var-cache-makepkg.mount rw,
|
||||
owner @{run}/systemd/generator/dev-zram@{int}.swap rw,
|
||||
owner @{run}/systemd/generator/swap.target.wants/{,dev-zram@{int}.swap} rw,
|
||||
owner @{run}/systemd/generator/systemd-zram-setup@zram@{int}.service.d/{,*.conf} rw,
|
||||
|
||||
@{sys}/devices/virtual/block/zram@{int}/{disksize,reset,comp_algorithm} rw,
|
||||
@{sys}/block/zram@{int}/{disksize,reset} rw,
|
||||
@{sys}/devices/virtual/block/zram@{int}/{disksize,reset,comp_algorithm} rw,
|
||||
@{sys}/module/compression r,
|
||||
|
||||
@{PROC}/crypto r,
|
||||
|
||||
|
|
Loading…
Reference in a new issue