Skip to contentSkip to conversation

lsof: clear setuid

PATCH New [email protected] 1 participant 2 messages May 27, 2017

lore
Share & tools
lore
#0 lore raw

cover lsof: clear setuid

From: Kai Kang <[email protected]>

The following changes since commit 5eed6c644f715783edb0d05926373e719442dd6a:

libpcap: add native package (2017-05-25 23:59:32 +0100)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib kangkai/lsof
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=kangkai/lsof

Kai Kang (1):
lsof: clear setuid

 meta/recipes-extended/lsof/lsof_4.89.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.10.1
#1 lore raw

PATCH 1/1 lsof: clear setuid

From: Kai Kang <[email protected]>

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.

---
 meta/recipes-extended/lsof/lsof_4.89.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-extended/lsof/lsof_4.89.bb +1 -1
index b732cf0..650b34c 100644
@@ -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
 }
Signature · 1 line
2.10.1