- Add check for suid files and directories
Approved by: portmgr (bapt)
This commit is contained in:
parent
ac016af760
commit
542371959d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=331046
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user