[OE-core] [oe-core][PATCH 1/2] systemd: fix systemd-user pam configuration
Dan McGregor
danismostlikely at gmail.com
Wed Apr 23 15:01:24 UTC 2014
From: Dan McGregor <dan.mcgregor at 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 at 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
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 \
file://uclibc-sysinfo_h.patch \
--
1.9.0
More information about the Openembedded-core
mailing list