Skip to content
Snippets Groups Projects
Commit feaae228 authored by nl6720's avatar nl6720 Committed by John Johansen
Browse files

abstractions/nameservice: allow accessing /run/systemd/userdb/

On systems with systemd 245, nss-systemd additionally queries NSS records from systemd-userdbd.service. See https://systemd.io/USER_GROUP_API/ .

(cherry picked from commit 16f9f688)
Fixes: #82


Signed-off-by: default avatarnl6720 <nl6720@gmail.com>
Signed-off-by: default avatarJohn Johansen <john.johansen@canonical.com>
parent b555cb2b
No related branches found
No related tags found
1 merge request!518Fix apparmor 2.12/2.11 gitlab ci build failure
Pipeline #131597214 failed
......@@ -29,6 +29,11 @@
/var/lib/extrausers/group r,
/var/lib/extrausers/passwd r,
# NSS records from systemd-userdbd.service
@{run}/systemd/userdb/ r,
@{run}/systemd/userdb/io.systemd.{NameServiceSwitch,Multiplexer,DynamicUser,Home} r,
@{PROC}/sys/kernel/random/boot_id r,
# When using sssd, the passwd and group files are stored in an alternate path
# and the nss plugin also needs to talk to a pipe
/var/lib/sss/mc/group r,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment