Patchwork [1/2] systemd: fix systemd-user pam configuration

login
register
mail settings
Submitter danismostlikely@gmail.com
Date April 23, 2014, 3:01 p.m.
Message ID <CACS+7ZQ2J9JDPHJWo+HA7XDU33OjGmSdzsRmGNMaRDnLTGACeQ@mail.gmail.com>
Download mbox | patch
Permalink /patch/70809/
State New
Headers show

Comments

danismostlikely@gmail.com - April 23, 2014, 3:01 p.m.
From: Dan McGregor <dan.mcgregor@usask.ca>

Use common-auth and common-session files instead of system-auth.
system-auth is a Fedora-ism that oe-core doesn't have. This fixes
an issue where the systemd user session manager fails to start.

Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
---
 .../systemd/systemd/systemd-pam-fix-systemd-user.patch     | 14 ++++++++++++++
 meta/recipes-core/systemd/systemd_211.bb                   |  1 +
 2 files changed, 15 insertions(+)
 create mode 100644
meta/recipes-core/systemd/systemd/systemd-pam-fix-systemd-user.patch

            file://uclibc-sysinfo_h.patch \

Patch

diff --git a/meta/recipes-core/systemd/systemd/systemd-pam-fix-systemd-user.patch
b/meta/recipes-core/systemd/systemd/systemd-pam-fix-systemd-user.patch
new file mode 100644
index 0000000..58614e8
--- /dev/null
+++ b/meta/recipes-core/systemd/systemd/systemd-pam-fix-systemd-user.patch
@@ -0,0 +1,14 @@ 
+diff --git a/src/login/systemd-user b/src/login/systemd-user
+index 7b57dbf..c0fc793 100644
+--- a/src/login/systemd-user
++++ b/src/login/systemd-user
+@@ -2,7 +2,7 @@
+
+ # Used by systemd when launching systemd user instances.
+
+-account include system-auth
+-session include system-auth
++account include common-account
++session include common-session
+ auth required pam_deny.so
+ password required pam_deny.so
diff --git a/meta/recipes-core/systemd/systemd_211.bb
b/meta/recipes-core/systemd/systemd_211.bb
index 44b1965..df632ab 100644
--- a/meta/recipes-core/systemd/systemd_211.bb
+++ b/meta/recipes-core/systemd/systemd_211.bb
@@ -27,6 +27,7 @@  SRC_URI =
"git://anongit.freedesktop.org/systemd/systemd;branch=master;protocol=
            file://systemd-pam-fix-execvpe.patch \
            file://systemd-pam-fix-fallocate.patch \
            file://systemd-pam-fix-mkostemp.patch \
+           file://systemd-pam-fix-systemd-user.patch \
            file://optional_secure_getenv.patch \
            file://0001-uClibc-doesn-t-implement-pwritev-preadv.patch \