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.

(From OE-Core rev: 6cf2891fe1526570c4e3eb8d78dc4d914d2d2079)

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 346c65dd6855106069d1861ca965d3121eb084d1)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Kai Kang 2017-05-27 15:45:03 +08:00 committed by Richard Purdie
parent 279e22c16b
commit a58b021b75
1 changed files with 1 additions and 1 deletions

View File

@ -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
}