From 9dab6b9794f9effa9c9b68c1d0c501c7a53f89b1 Mon Sep 17 00:00:00 2001 From: nobodysu Date: Fri, 27 May 2022 02:08:37 +0300 Subject: [PATCH] stricter logind --- apparmor.d/groups/systemd/systemd-logind | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apparmor.d/groups/systemd/systemd-logind b/apparmor.d/groups/systemd/systemd-logind index e061471f9..3eac71186 100644 --- a/apparmor.d/groups/systemd/systemd-logind +++ b/apparmor.d/groups/systemd/systemd-logind @@ -66,7 +66,8 @@ profile systemd-logind @{exec_path} flags=(attach_disconnected,complain) { @{run}/systemd/seats/.#seat* rw, @{run}/systemd/seats/seat[0-9]* rw, @{run}/systemd/sessions/ rw, - @{run}/systemd/sessions/* rw, + @{run}/systemd/sessions/* r, + @{run}/systemd/sessions/.#* rw, @{run}/systemd/sessions/*.ref rw, @{run}/systemd/userdb/ r, @{run}/systemd/userdb/io.systemd.DynamicUser rw,