feat(profile): update zram generator.

This commit is contained in:
Alexandre Pujol 2024-05-07 13:19:41 +01:00
parent 7cb006d20c
commit 18d1ee66a2
Failed to generate hash of commit

View file

@ -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,