From c54159d95c87c062bab35dc55b4ada2ba9e06775 Mon Sep 17 00:00:00 2001 From: Kai Kang Date: Wed, 17 Apr 2013 17:00:25 +0800 Subject: libpam: backport patches from upstream Backport patches from linux-pam git repo to fix test case tst-pam_pwhistory1 failure. [YOCTO #4107] (From OE-Core rev: 65e4a9f050ae588ec794808315a206d94ca7a861) Signed-off-by: Kai Kang Signed-off-by: Richard Purdie --- ...-enforce_for_root-semantics-change-in-pam.patch | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 meta/recipes-extended/pam/libpam/reflect-the-enforce_for_root-semantics-change-in-pam.patch (limited to 'meta/recipes-extended/pam/libpam/reflect-the-enforce_for_root-semantics-change-in-pam.patch') diff --git a/meta/recipes-extended/pam/libpam/reflect-the-enforce_for_root-semantics-change-in-pam.patch b/meta/recipes-extended/pam/libpam/reflect-the-enforce_for_root-semantics-change-in-pam.patch new file mode 100644 index 0000000000..c13535ecc2 --- /dev/null +++ b/meta/recipes-extended/pam/libpam/reflect-the-enforce_for_root-semantics-change-in-pam.patch @@ -0,0 +1,35 @@ +Backport from linux-pam git repo. + +[YOCTO #4107] + +Upstream-Status: Backport + +Signed-off-by: Kang Kai + +From bd07ad3adc626f842a4391d256541883426fd389 Mon Sep 17 00:00:00 2001 +From: Tomas Mraz +Date: Tue, 13 Nov 2012 09:19:05 +0100 +Subject: [PATCH] Reflect the enforce_for_root semantics change in + pam_pwhistory xtest. + +xtests/tst-pam_pwhistory1.pamd: Use enforce_for_root as the test is +running with real uid == 0. +--- + xtests/tst-pam_pwhistory1.pamd | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/xtests/tst-pam_pwhistory1.pamd b/xtests/tst-pam_pwhistory1.pamd +index 68e1b94..d60db7c 100644 +--- a/xtests/tst-pam_pwhistory1.pamd ++++ b/xtests/tst-pam_pwhistory1.pamd +@@ -1,6 +1,6 @@ + #%PAM-1.0 + auth required pam_permit.so + account required pam_permit.so +-password required pam_pwhistory.so remember=10 retry=1 ++password required pam_pwhistory.so remember=10 retry=1 enforce_for_root + password required pam_unix.so use_authtok md5 + session required pam_permit.so +-- +1.7.11.7 + -- cgit v1.2.3-54-g00ecf