From b9b844c1822b4ffc75a62b5af53f9d3ebd9c51e9 Mon Sep 17 00:00:00 2001 From: nobodysu Date: Tue, 21 Dec 2021 10:20:45 +0000 Subject: [PATCH 1/2] Ubuntu compatibility --- apparmor.d/abstractions/nameservice-strict | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apparmor.d/abstractions/nameservice-strict b/apparmor.d/abstractions/nameservice-strict index 72babfb9..5e116769 100644 --- a/apparmor.d/abstractions/nameservice-strict +++ b/apparmor.d/abstractions/nameservice-strict @@ -7,6 +7,7 @@ /etc/hosts r, /etc/host.conf r, /etc/resolv.conf r, + @{run}/systemd/resolve/stub-resolv.conf r, /etc/nsswitch.conf r, /etc/passwd r, /etc/gai.conf r, @@ -20,4 +21,4 @@ /{var,}run/systemd/userdb/io.systemd.{NameServiceSwitch,Multiplexer,DynamicUser,Home} r, @{PROC}/sys/kernel/random/boot_id r, - include if exists \ No newline at end of file + include if exists From 777f46779ff634fd5280019ae033f4486634c135 Mon Sep 17 00:00:00 2001 From: nobodysu Date: Tue, 21 Dec 2021 10:39:12 +0000 Subject: [PATCH 2/2] Typo? --- apparmor.d/abstractions/nameservice-strict | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apparmor.d/abstractions/nameservice-strict b/apparmor.d/abstractions/nameservice-strict index 5e116769..7c6f49e3 100644 --- a/apparmor.d/abstractions/nameservice-strict +++ b/apparmor.d/abstractions/nameservice-strict @@ -17,8 +17,8 @@ /etc/services r, # NSS records from systemd-userdbd.service - /{var,}run/systemd/userdb/ r, - /{var,}run/systemd/userdb/io.systemd.{NameServiceSwitch,Multiplexer,DynamicUser,Home} r, + @{run}/systemd/userdb/ r, + @{run}/systemd/userdb/io.systemd.{NameServiceSwitch,Multiplexer,DynamicUser,Home} r, @{PROC}/sys/kernel/random/boot_id r, include if exists