From 60e00f8c5352287face865d24fad584f8701b7ab Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Sun, 1 Sep 2024 15:22:05 +0100 Subject: [PATCH] fix(profile): zramctl doesn't show algorithm, data, compression, total, streams, mountpoint fix #456 --- apparmor.d/groups/systemd/zramctl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apparmor.d/groups/systemd/zramctl b/apparmor.d/groups/systemd/zramctl index 0d163292..289dc4f0 100644 --- a/apparmor.d/groups/systemd/zramctl +++ b/apparmor.d/groups/systemd/zramctl @@ -14,7 +14,13 @@ profile zramctl @{exec_path} { @{exec_path} mr, @{sys}/devices/virtual/block/zram@{int}/ r, + @{sys}/devices/virtual/block/zram@{int}/comp_algorithm r, @{sys}/devices/virtual/block/zram@{int}/disksize r, + @{sys}/devices/virtual/block/zram@{int}/max_comp_streams r, + @{sys}/devices/virtual/block/zram@{int}/mm_stat r, + + @{PROC}/swaps r, + owner @{PROC}/@{pid}/mounts r, /dev/ r, /dev/zram@{int} rw,