svn commit: r331046 - head/Mk/Scripts

Alex Kozlov ak at FreeBSD.org
Sun Oct 20 18:12:49 UTC 2013


Author: ak
Date: Sun Oct 20 18:12:49 2013
New Revision: 331046
URL: http://svnweb.freebsd.org/changeset/ports/331046

Log:
  - Add check for suid files and directories
  
  Approved by:	portmgr (bapt)

Modified:
  head/Mk/Scripts/qa.sh

Modified: head/Mk/Scripts/qa.sh
==============================================================================
--- head/Mk/Scripts/qa.sh	Sun Oct 20 18:08:52 2013	(r331045)
+++ head/Mk/Scripts/qa.sh	Sun Oct 20 18:12:49 2013	(r331046)
@@ -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}


More information about the svn-ports-all mailing list