diff options
author | peter <peter@FreeBSD.org> | 1996-06-30 13:16:21 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1996-06-30 13:16:21 +0000 |
commit | 9b4d02761caea66b2796f2c9fcbec958c4739286 (patch) | |
tree | b870eec6f8d579de46dceedfa7bfff77ab5704f1 /etc | |
parent | 1fa1efc97946b21f30f9db4b8a7b264baea9cc32 (diff) | |
download | FreeBSD-src-9b4d02761caea66b2796f2c9fcbec958c4739286.zip FreeBSD-src-9b4d02761caea66b2796f2c9fcbec958c4739286.tar.gz |
If a local ufs filesystem is mounted "nosuid", dont scan it as part of
the /etc/security setuid checks. This is useful for things like large
news spool partitions that dont have executables.
Reviewed by: pst
Diffstat (limited to 'etc')
-rw-r--r-- | etc/security | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/security b/etc/security index 9e57fbc..55776e4 100644 --- a/etc/security +++ b/etc/security @@ -1,7 +1,7 @@ #!/bin/sh - # # @(#)security 5.3 (Berkeley) 5/28/91 -# $Id: security,v 1.10 1996/04/18 10:34:07 ache Exp $ +# $Id: security,v 1.11 1996/04/19 22:28:01 ache Exp $ # PATH=/sbin:/bin:/usr/bin LC_ALL=C; export LC_ALL @@ -20,7 +20,7 @@ echo "checking setuid files and devices:" # note that one of the original problem, the possibility of overrunning # the args to ls, is still here... # -MP=`mount -t ufs | sed 's;/dev/;&r;' | awk '{ print $3 }'` +MP=`mount -t ufs | grep -v " nosuid" | sed 's;/dev/;&r;' | awk '{ print $3 }'` set $MP while test $# -ge 1; do mount=$1 |