workaround for bug PTREL-763 95/18395/1 accepted/tizen/generic/20140321.155859 submit/tizen/20140321.155643
authorStephane Desneux <stephane.desneux@open.eurogiciel.org>
Fri, 21 Mar 2014 15:53:44 +0000 (16:53 +0100)
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>
Fri, 21 Mar 2014 15:53:44 +0000 (16:53 +0100)
Change-Id: Ia4cb9f54ecb6afdd72b80122621681ca2743f9e8
Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
scripts/generic-base.post

index ce66530..2bd307b 100644 (file)
@@ -55,4 +55,16 @@ if [ -e /etc/sysconfig/i18n -a ! -e /etc/locale.conf ]; then
        [ -n "$LC_IDENTIFICATION" ] && echo LC_IDENTIFICATION=$LC_IDENTIFICATION >> /etc/locale.conf
 fi
 
-
+# workaround for bug PTREL-763
+patch -p1 -d/ <<'EOF'
+diff -urN bad/etc/pam.d/systemd-user good/etc/pam.d/systemd-user
+--- bad/etc/pam.d/systemd-user 2014-03-20 10:01:36.657843073 +0100
++++ good/etc/pam.d/systemd-user 2014-03-20 10:06:51.586121696 +0100
+@@ -4,5 +4,6 @@
+ account include system-auth
+ session include system-auth
++session required pam_systemd.so
+ auth required pam_deny.so
+ password required pam_deny.so
+EOF