summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended
diff options
context:
space:
mode:
authorWenzong Fan <wenzong.fan@windriver.com>2011-08-20 15:30:32 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-08-24 15:02:23 -0700
commit6ba3b6ba9b8587791e392bf3542403ab33ca9ad3 (patch)
tree9df8a12347455ecb8e1dfbcb954c98651a06dcc8 /meta/recipes-extended
parent45a0c381673ccf7331c64e914a72bf88618c8dfa (diff)
downloadpoky-6ba3b6ba9b8587791e392bf3542403ab33ca9ad3.tar.gz
libpam: Setting suid bit for unix_chkpwd
[YOCTO #1252] While pam_unix.so required by an application on lsb image, it will need to call the unix_chkpwd to get userinfo from shadow file. This fix get a normal user could read shadow file via unix_chkpwd. (From OE-Core rev: c23a3cd68385563a16d5bbc899e26f35cdc6c2cf) Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r--meta/recipes-extended/pam/libpam_1.1.4.bb8
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/recipes-extended/pam/libpam_1.1.4.bb b/meta/recipes-extended/pam/libpam_1.1.4.bb
index ae20a9783a..d6f95b198f 100644
--- a/meta/recipes-extended/pam/libpam_1.1.4.bb
+++ b/meta/recipes-extended/pam/libpam_1.1.4.bb
@@ -9,7 +9,7 @@ SECTION = "base"
9LICENSE = "GPLv2+ | BSD" 9LICENSE = "GPLv2+ | BSD"
10LIC_FILES_CHKSUM = "file://COPYING;md5=ca0395de9a86191a078b8b79302e3083" 10LIC_FILES_CHKSUM = "file://COPYING;md5=ca0395de9a86191a078b8b79302e3083"
11 11
12PR = "r1" 12PR = "r2"
13 13
14DEPENDS = "bison flex cracklib" 14DEPENDS = "bison flex cracklib"
15RDEPENDS_${PN}-runtime = "libpam pam-plugin-deny pam-plugin-permit pam-plugin-warn pam-plugin-unix" 15RDEPENDS_${PN}-runtime = "libpam pam-plugin-deny pam-plugin-permit pam-plugin-warn pam-plugin-unix"
@@ -85,3 +85,9 @@ do_install() {
85 install -d ${D}${sysconfdir}/pam.d/ 85 install -d ${D}${sysconfdir}/pam.d/
86 install -m 0644 ${WORKDIR}/pam.d/* ${D}${sysconfdir}/pam.d/ 86 install -m 0644 ${WORKDIR}/pam.d/* ${D}${sysconfdir}/pam.d/
87} 87}
88
89pkg_postinst_pam-plugin-unix () {
90 # below is necessary to allow unix_chkpwd get user info from shadow file
91 # on lsb images
92 chmod 4755 ${sbindir}/unix_chkpwd
93}