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,