|
Lines 45-51
Link Here
|
| 45 |
then |
45 |
then |
| 46 |
echo "" |
46 |
echo "" |
| 47 |
echo 'Checking setuid files and devices:' |
47 |
echo 'Checking setuid files and devices:' |
| 48 |
MP=`mount -t ufs,zfs | awk '$0 !~ /no(suid|exec)/ { print $3 }'` |
48 |
IFS=$'\t\n' # Don't split mount points with spaces |
|
|
49 |
MP=`mount -t ufs,zfs | awk ' |
| 50 |
$0 !~ /no(suid|exec)/ { |
| 51 |
sub(/^.* on \//, "/"); |
| 52 |
sub(/ \(.*\)/, ""); |
| 53 |
print $0 |
| 54 |
}'` |
| 49 |
find -sx $MP /dev/null \( ! -fstype local \) -prune -o -type f \ |
55 |
find -sx $MP /dev/null \( ! -fstype local \) -prune -o -type f \ |
| 50 |
\( -perm -u+x -or -perm -g+x -or -perm -o+x \) \ |
56 |
\( -perm -u+x -or -perm -g+x -or -perm -o+x \) \ |
| 51 |
\( -perm -u+s -or -perm -g+s \) -exec ls -liTd \{\} \+ | |
57 |
\( -perm -u+s -or -perm -g+s \) -exec ls -liTd \{\} \+ | |