[oe-commits] [openembedded-core] 22/39: lsof: clear setuid

git at git.openembedded.org git at git.openembedded.org
Tue Aug 29 10:58:19 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch pyro
in repository openembedded-core.

commit 6cf2891fe1526570c4e3eb8d78dc4d914d2d2079
Author: Kai Kang <kai.kang at windriver.com>
AuthorDate: Sat May 27 15:45:03 2017 +0800

    lsof: clear setuid
    
    Having 'lsof' as a +s (setuid) binary could lead to security issues if
    a compromise in the binary is found.  It is better that it be -s by
    default as a precaution.
    
    Signed-off-by: Kai Kang <kai.kang at windriver.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
    (cherry picked from commit 346c65dd6855106069d1861ca965d3121eb084d1)
    Signed-off-by: Armin Kuster <akuster808 at gmail.com>
---
 meta/recipes-extended/lsof/lsof_4.89.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-extended/lsof/lsof_4.89.bb b/meta/recipes-extended/lsof/lsof_4.89.bb
index b732cf0..650b34c 100644
--- a/meta/recipes-extended/lsof/lsof_4.89.bb
+++ b/meta/recipes-extended/lsof/lsof_4.89.bb
@@ -53,6 +53,6 @@ do_compile () {
 
 do_install () {
 	install -d ${D}${sbindir} ${D}${mandir}/man8
-	install -m 4755 lsof ${D}${sbindir}/lsof
+	install -m 0755 lsof ${D}${sbindir}/lsof
 	install -m 0644 lsof.8 ${D}${mandir}/man8/lsof.8
 }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list