From 23e749b62bb4c541d19cf3b79611d9d40cb215e1 Mon Sep 17 00:00:00 2001 From: "Anton D. Kachalov" Date: Thu, 4 Feb 2021 13:13:57 +0100 Subject: 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 Change-Id: Iabd709c4a20f754fc6ea505e640b2d361aba0be2 --- meta-phosphor/classes/obmc-phosphor-image.bbclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'meta-phosphor/classes') 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" } -- cgit v1.2.3