Skip to contentSkip to conversation

package/systemd: add userdb support

PATCH New James Hilliard 2 participants 2 messages Mar 8, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/systemd: add userdb support

systemd-userdbd is a system service that multiplexes user/group lookups to all local services that provide JSON user/group record definitions to the system. In addition it synthesizes JSON user/group records from classic UNIX/glibc NSS user/group records in order to provide full backwards compatibility.

---
 package/systemd/Config.in  | 11 +++++++++++
 package/systemd/systemd.mk |  7 ++++++-
 2 files changed, 17 insertions(+), 1 deletion(-)
package/systemd/Config.in +11 -0
index c727082a1a..051bec5de1 100644
@@ -233,6 +233,17 @@ config BR2_PACKAGE_SYSTEMD_LOCALED
 
 	  http://www.freedesktop.org/software/systemd/man/systemd-localed.service.html
 
+config BR2_PACKAGE_SYSTEMD_USERDB
+	bool "enable userdb daemon"
+	help
+	  systemd-userdbd is a system service that multiplexes user/group
+	  lookups to all local services that provide JSON user/group record
+	  definitions to the system. In addition it synthesizes JSON
+	  user/group records from classic UNIX/glibc NSS user/group records
+	  in order to provide full backwards compatibility.
+
+	  https://www.freedesktop.org/software/systemd/man/systemd-userdbd.service.html
+
 config BR2_PACKAGE_SYSTEMD_LOGIND
 	bool "enable login daemon"
 	help
package/systemd/systemd.mk +6 -1
index 1c3b81cfcb..2dfe69b4f3 100644
@@ -42,7 +42,6 @@ SYSTEMD_CONF_OPTS += \
 	-Dnobody-group=nogroup \
 	-Didn=true \
 	-Drepart=false \
-	-Duserdb=false \
 	-Dhomed=false \
 	-Dnss-systemd=true
 
@@ -305,6 +304,12 @@ else
 SYSTEMD_CONF_OPTS += -Dlocaled=false
 endif
 
+ifeq ($(BR2_PACKAGE_SYSTEMD_USERDB),y)
+SYSTEMD_CONF_OPTS += -Duserdb=true
+else
+SYSTEMD_CONF_OPTS += -Duserdb=false
+endif
+
 ifeq ($(BR2_PACKAGE_SYSTEMD_COREDUMP),y)
 SYSTEMD_CONF_OPTS += -Dcoredump=true
 SYSTEMD_COREDUMP_USER = systemd-coredump -1 systemd-coredump -1 * /var/lib/systemd/coredump - - Core Dumper
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 package/systemd: add userdb support

Quoted 18 lines · On Sun, 8 Mar 2020 03:39:58 -0600 James Hilliard <[email protected]>…

systemd-userdbd is a system service that multiplexes user/group lookups to all local services that provide JSON user/group record definitions to the system. In addition it synthesizes JSON user/group records from classic UNIX/glibc NSS user/group records in order to provide full backwards compatibility.

---
 package/systemd/Config.in  | 11 +++++++++++
 package/systemd/systemd.mk |  7 ++++++-
 2 files changed, 17 insertions(+), 1 deletion(-)
package/systemd/Config.in +0 -0
index c727082a1a..051bec5de1 100644
@@ -233,6 +233,17 @@ config BR2_PACKAGE_SYSTEMD_LOCALED
 

package/systemd/Config.in config BR2_PACKAGE_SYSTEMD_LOCALED · line 243

Quoted 10 lines
package/systemd/Config.in +8 -0
 	  http://www.freedesktop.org/software/systemd/man/systemd-localed.service.html
 
+config BR2_PACKAGE_SYSTEMD_USERDB
+	bool "enable userdb daemon"
+	help
+	  systemd-userdbd is a system service that multiplexes user/group
+	  lookups to all local services that provide JSON user/group record
+	  definitions to the system. In addition it synthesizes JSON
+	  user/group records from classic UNIX/glibc NSS user/group records
+	  in order to provide full backwards compatibility.

These lines were too long, check-package complained.

Also, alphabetic ordering of options was not respected here.

I fixed both, and applied to next. Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com