libpam: Setting suid bit for unix_chkpwd
v2 cover libpam: Setting suid bit for unix_chkpwd
From: Wenzong Fan <[email protected]>
v2 updates: with ${sbindir} to replace the hardcode '/usr/sbin'
The following changes since commit 36396b6ecb0c84c6752cdc8118c496e8ec05a388:
Richard Purdie (1):
xcb/libpthreads: Add BBCLASSEXTEND to resolve missing providers in world builds
are available in the git repository at:
git://git.pokylinux.org/poky-contrib wenzong/1252
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=wenzong/1252
Wenzong Fan (1):
libpam: Setting suid bit for unix_chkpwd
meta/recipes-extended/pam/libpam_1.1.4.bb | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-)
PATCH v2 1/1 libpam: Setting suid bit for unix_chkpwd
From: Wenzong Fan <[email protected]>
[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.
--- meta/recipes-extended/pam/libpam_1.1.4.bb | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-)
meta/recipes-extended/pam/libpam_1.1.4.bb +7 -1
@@ -9,7 +9,7 @@ SECTION = "base" LICENSE = "GPLv2+ | BSD" LIC_FILES_CHKSUM = "file://COPYING;md5=ca0395de9a86191a078b8b79302e3083" -PR = "r1" +PR = "r2" DEPENDS = "bison flex cracklib" RDEPENDS_${PN}-runtime = "libpam pam-plugin-deny pam-plugin-permit pam-plugin-warn pam-plugin-unix"
@@ -85,3 +85,9 @@ do_install() { install -d ${D}${sysconfdir}/pam.d/ install -m 0644 ${WORKDIR}/pam.d/* ${D}${sysconfdir}/pam.d/ } + +pkg_postinst_pam-plugin-unix () { + # below is necessary to allow unix_chkpwd get user info from shadow file + # on lsb images + chmod 4755 ${sbindir}/unix_chkpwd +}
Signature · 1 line
1.7.0.4
Saul Wold
AppliedQuoted 16 lines · On 08/21/2011 08:11 PM, [email protected] wrote:
From: Wenzong Fan<[email protected]>
v2 updates: with ${sbindir} to replace the hardcode '
/usr/sbin'The following changes since commit
36396b6ecb0c84c6752cdc8118c496e8ec05a388:
Richard Purdie (1):
xcb/libpthreads: Add BBCLASSEXTEND to resolve missing providers in world buildsare available in the git repository at:
git://git.pokylinux.org/poky-contrib wenzong/1252 http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=wenzong/1252Wenzong Fan (1):
libpam: Setting suid bit forunix_chkpwd
Quoted 9 lines
meta/recipes-extended/pam/libpam_1.1.4.bb | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-)_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Merged into OE-Core
Thanks
Sau!