ignore setgid on dirs.

This commit is contained in:
mrg 1996-05-22 00:51:08 +00:00
parent be7efc5cc0
commit 2bc04b57a8

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $NetBSD: security,v 1.13 1996/01/14 00:58:25 pk Exp $
# $NetBSD: security,v 1.14 1996/05/22 00:51:08 mrg Exp $
# from: @(#)security 8.1 (Berkeley) 6/9/93
#
@ -350,7 +350,8 @@ fi
printf "\nChecking setuid files and devices:\n"
(find / \( ! -fstype local -o -fstype fdesc -o -fstype kernfs \
-o -fstype procfs \) -a -prune -o \
\( -perm -u+s -o -perm -g+s -o ! -type d -a ! -type f -a ! -type l -a \
\( -perm -u+s -o \( -perm -g+s -a ! -type d \) -o \
! -type d -a ! -type f -a ! -type l -a \
! -type s \) -print | \
sort | sed -e 's/^/ls -ldgT /' | sh > $LIST) 2> $OUTPUT