Modify systemd pam rules
authorRonan Le Martret <ronan@fridu.net>
Sat, 31 May 2014 11:46:22 +0000 (13:46 +0200)
committerRonan Le Martret <ronan@fridu.net>
Sat, 31 May 2014 11:46:22 +0000 (13:46 +0200)
Change-Id: I20853db54acf3492ca24a11fea5a56fd515c95da
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
recipes-tizen/pam/libpam-extraconf.inc
recipes-tizen/systemd/files/systemd-user [new file with mode: 0644]
recipes-tizen/systemd/systemd-extraconf.inc

index c14c0ac..ab16da5 100644 (file)
@@ -1,3 +1,7 @@
+
+SRC_URI += "file://system-auth"
+
+
 EXTRA_OECONF = "--with-db-uniquename=_pam \
                 --disable-nis \
                 --disable-regenerate-docu \
@@ -37,6 +41,6 @@ for i in _pam_compat.h \
     cp ${D}${prefix}/include/${i} ${D}${prefix}/include/security/
 done
 
-install -m 0644 ${WORKDIR}/system-auth ${D}/etc/pam.d
+install -m 0644 ${WORKDIR}/system-auth ${D}${sysconfdir}/pam.d
 
 }
\ No newline at end of file
diff --git a/recipes-tizen/systemd/files/systemd-user b/recipes-tizen/systemd/files/systemd-user
new file mode 100644 (file)
index 0000000..73bc911
--- /dev/null
@@ -0,0 +1,9 @@
+#%PAM-1.0
+
+# Used by systemd when launching systemd user instances.
+
+account include system-auth
+session include system-auth
+session required pam_systemd.so
+auth required pam_deny.so
+password required pam_deny.so
\ No newline at end of file
index eeea340..c375792 100644 (file)
@@ -1,3 +1,4 @@
+SRC_URI += "file://systemd-user"
 
 systemd_files += "${sysconfdir}/*"
 
@@ -40,6 +41,7 @@ do_install_append() {
  rm ${D}${sysconfdir}/machine-info
  rm ${D}${sysconfdir}/timezone
 
+ install -m 0644 ${WORKDIR}/systemd-user ${D}${sysconfdir}/pam.d
 }
 
 EXTRA_OECONF = " --disable-manpages \