]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
libpam: add system-auth in case of systemd ChenQi/libpam-systemd
authorChen Qi <Qi.Chen@windriver.com>
Thu, 30 Oct 2014 08:43:41 +0000 (16:43 +0800)
committerChen Qi <Qi.Chen@windriver.com>
Thu, 30 Oct 2014 09:00:20 +0000 (17:00 +0800)
systemd needs this file to be there because one of its configuration file
in pam.d, systemd-user, requires it. Otherwise, we would have errors like
below.

    systemd: PAM _pam_load_conf_file: unable to open /etc/pam.d/system-auth

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
meta/recipes-extended/pam/libpam/pam.d/system-auth [new file with mode: 0644]
meta/recipes-extended/pam/libpam_1.1.6.bb

diff --git a/meta/recipes-extended/pam/libpam/pam.d/system-auth b/meta/recipes-extended/pam/libpam/pam.d/system-auth
new file mode 100644 (file)
index 0000000..ffb08ab
--- /dev/null
@@ -0,0 +1,12 @@
+# This file comes from systemd.
+
+auth     sufficient pam_unix.so nullok try_first_pass
+
+account  required   pam_nologin.so
+account  sufficient pam_unix.so
+
+password sufficient pam_unix.so nullok sha512 shadow try_first_pass try_authtok
+
+-session optional   pam_loginuid.so
+-session optional   pam_systemd.so
+session  sufficient pam_unix.so
index a84e51e979b629df0194c89f0511dd5df6dff708..0910b6f87694b58e914cfbbf83d5ced359d79961 100644 (file)
@@ -17,6 +17,7 @@ SRC_URI = "http://linux-pam.org/library/Linux-PAM-${PV}.tar.bz2 \
            file://pam.d/common-session \
            file://pam.d/common-session-noninteractive \
            file://pam.d/other \
+           ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'file://pam.d/system-auth', '', d)} \
            file://libpam-xtests.patch \
            file://destdirfix.patch \
            file://fixsepbuild.patch \