- Add check for suid files and directories

Approved by:	portmgr (bapt)
This commit is contained in:
Alex Kozlov 2013-10-20 18:12:49 +00:00
parent ac016af760
commit 542371959d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=331046

View File

@ -93,7 +93,18 @@ sharedmimeinfo() {
return 0
}
checks="shebang symlinks paths stripped desktopfileutils sharedmimeinfo"
suidfiles() {
filelist=`find ${STAGEDIR} -type f \
\( -perm -u+x -or -perm -g+x -or -perm -o+x \) \
\( -perm -u+s -or -perm -g+s \)`
if [ -n "${filelist}" ]; then
warn "setuid files in the stage directory (are these necessary?):"
ls -liTd ${filelist}
fi
return 0
}
checks="shebang symlinks paths stripped desktopfileutils sharedmimeinfo suidfiles"
ret=0
cd ${STAGEDIR}