diff options
author | Anton D. Kachalov <gmouse@google.com> | 2021-02-04 15:13:57 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2021-04-12 23:11:13 +0300 |
commit | 23e749b62bb4c541d19cf3b79611d9d40cb215e1 (patch) | |
tree | f714bb8cd7ebdd8f1fdfd917def5d3b1ef9a810a /meta-phosphor/classes/obmc-phosphor-image.bbclass | |
parent | 57e15b1d5cf7749e6bd01c3ef484689f4191d51e (diff) | |
download | openbmc-23e749b62bb4c541d19cf3b79611d9d40cb215e1.tar.xz |
Enable Systemd NSS module to support DynamicUsers
DynamicUsers flag in systemd service configuration file required to create,
handle and recycle temporary users.
This is essential module for upcoming daemons' privilege separation work.
Reference: https://github.com/openbmc/openbmc/issues/3383
Signed-off-by: Anton D. Kachalov <gmouse@google.com>
Change-Id: Iabd709c4a20f754fc6ea505e640b2d361aba0be2
Diffstat (limited to 'meta-phosphor/classes/obmc-phosphor-image.bbclass')
-rw-r--r-- | meta-phosphor/classes/obmc-phosphor-image.bbclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta-phosphor/classes/obmc-phosphor-image.bbclass b/meta-phosphor/classes/obmc-phosphor-image.bbclass index 0a07fc6f4..c83dce32f 100644 --- a/meta-phosphor/classes/obmc-phosphor-image.bbclass +++ b/meta-phosphor/classes/obmc-phosphor-image.bbclass @@ -88,7 +88,9 @@ remove_etc_version() { } enable_ldap_nsswitch() { - sed -i 's/\(\(passwd\|group\|shadow\):\s*\).*/\1files ldap/' \ + sed -i 's/\(\(passwd\|group\):\s*\).*/\1files systemd ldap/' \ + "${IMAGE_ROOTFS}${sysconfdir}/nsswitch.conf" + sed -i 's/\(shadow:\s*\).*/\1files ldap/' \ "${IMAGE_ROOTFS}${sysconfdir}/nsswitch.conf" } |