From: Saul Wold <sgw@linux.intel.com>
To: openembedded-core@lists.openembedded.org
Subject: [CONSOLIDATED PULL 5/6] libpam: Setting suid bit for unix_chkpwd
Date: Wed, 24 Aug 2011 08:50:30 -0700 [thread overview]
Message-ID: <c23a3cd68385563a16d5bbc899e26f35cdc6c2cf.1314200868.git.sgw@linux.intel.com> (raw)
In-Reply-To: <cover.1314200868.git.sgw@linux.intel.com>
In-Reply-To: <cover.1314200868.git.sgw@linux.intel.com>
From: Wenzong Fan <wenzong.fan@windriver.com>
[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.
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
---
meta/recipes-extended/pam/libpam_1.1.4.bb | 8 +++++++-
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 ae20a97..d6f95b1 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"
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
+}
--
1.7.6
next prev parent reply other threads:[~2011-08-24 15:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-24 15:50 [CONSOLIDATED PULL 0/6] Bugfixes for M4 Saul Wold
2011-08-24 15:50 ` [CONSOLIDATED PULL 1/6] libtasn1: update SRC_URI Saul Wold
2011-08-24 15:50 ` [CONSOLIDATED PULL 2/6] procps: Fix lib path to support multilib Saul Wold
2011-08-24 15:50 ` [CONSOLIDATED PULL 3/6] mips32: add mips32el tuning Saul Wold
2011-08-24 15:50 ` [CONSOLIDATED PULL 4/6] cronie: Updates to cronie Saul Wold
2011-08-24 15:50 ` Saul Wold [this message]
2011-08-24 15:50 ` [CONSOLIDATED PULL 6/6] initrdscripts: fix init-live.sh for hddimg and livecd Saul Wold
2011-08-24 18:17 ` [CONSOLIDATED PULL 0/6] Bugfixes for M4 Richard Purdie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c23a3cd68385563a16d5bbc899e26f35cdc6c2cf.1314200868.git.sgw@linux.intel.com \
--to=sgw@linux.intel.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox