From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail1.windriver.com ([147.11.146.13]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1S3Pf7-0004dv-CN for openembedded-core@lists.openembedded.org; Fri, 02 Mar 2012 11:24:33 +0100 Received: from ALA-HCA.corp.ad.wrs.com (ala-hca [147.11.189.40]) by mail1.windriver.com (8.14.3/8.14.3) with ESMTP id q22AG1eX019580 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Fri, 2 Mar 2012 02:16:01 -0800 (PST) Received: from [128.224.162.196] (128.224.162.196) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.1.255.0; Fri, 2 Mar 2012 02:16:01 -0800 Message-ID: <4F509DDF.3040103@windriver.com> Date: Fri, 2 Mar 2012 18:15:59 +0800 From: Robert Yang User-Agent: Mozilla/5.0 (X11; Linux i686; rv:9.0) Gecko/20111229 Thunderbird/9.0 MIME-Version: 1.0 To: References: <3F8819B5-BFD1-4A1B-AB0E-B54829635281@dominion.thruhere.net> In-Reply-To: <3F8819B5-BFD1-4A1B-AB0E-B54829635281@dominion.thruhere.net> Subject: Re: [PATCH 1/1] Fix libpam's chmod X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Patches and discussions about the oe-core layer List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Mar 2012 10:24:33 -0000 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit On 03/02/2012 04:42 PM, Koen Kooi wrote: > > Op 2 mrt. 2012, om 08:02 heeft Robert Yang het volgende geschreven: > >> The libpam's has an error when generating the rootfs: >> >> chmod: cannot access `/usr/sbin/unix_chkpwd': No such file or directory >> >> This is because the following code in libpam_1.1.5.bb: >> >> 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 >> } >> >> This is to set the setuid permission for unix_chkpwd (the lsb test >> requires this), but it lacks a "${D}", and we can do this in the install >> stage. >> >> [YOCTO #2049] >> >> Signed-off-by: Robert Yang >> --- >> meta/recipes-extended/pam/libpam_1.1.5.bb | 7 ++----- >> 1 files changed, 2 insertions(+), 5 deletions(-) >> >> diff --git a/meta/recipes-extended/pam/libpam_1.1.5.bb b/meta/recipes-extended/pam/libpam_1.1.5.bb >> index 283f477..8cddca9 100644 >> --- a/meta/recipes-extended/pam/libpam_1.1.5.bb >> +++ b/meta/recipes-extended/pam/libpam_1.1.5.bb >> @@ -85,10 +85,7 @@ 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 >> + # The lsb requires unix_chkpwd has setuid permission >> + chmod 4755 ${D}${sbindir}/unix_chkpwd > > MIssing PR bump > Thanks for your reply, but I'm sorry I don't what did you mean, I guess you mean the Pull Request, it is in the cover letter: The following changes since commit 6b6aa170d5c618cfcd016dd1de926db647f7f932: busybox: Restore 'date' compatability (2012-03-01 23:16:43 +0000) are available in the git repository at: git://git.pokylinux.org/poky-contrib robert/libpam http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/libpam // Robert > regards, > > Koen > _______________________________________________ > Openembedded-core mailing list > Openembedded-core@lists.openembedded.org > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core >