summaryrefslogtreecommitdiff
path: root/etc/security
diff options
context:
space:
mode:
authorerh <erh@NetBSD.org>2004-09-28 15:03:58 +0000
committererh <erh@NetBSD.org>2004-09-28 15:03:58 +0000
commit7da8bb106d0cacb977abe4e0eb70e98e649d4fdf (patch)
tree0e67dbeecef778bbbdb7dfb9db628d9af479af45 /etc/security
parent22e72f089d9182dce745ca9849d53aad483ac0dd (diff)
PR misc/7716: add configuration options find_core_ignore_fstypes and
check_devices_ignore_fstypes to allow the filesystem types that are ignored during the daily and security runs to be adjusted.
Diffstat (limited to 'etc/security')
-rw-r--r--etc/security11
1 files changed, 7 insertions, 4 deletions
diff --git a/etc/security b/etc/security
index fff449106f9..94e23acf3df 100644
--- a/etc/security
+++ b/etc/security
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $NetBSD: security,v 1.91 2004/07/23 06:12:16 lukem Exp $
+# $NetBSD: security,v 1.92 2004/09/28 15:03:58 erh Exp $
# from: @(#)security 8.1 (Berkeley) 6/9/93
#
@@ -599,9 +599,12 @@ fi
#
if checkyesno check_devices; then
> $ERR
- (find / \( ! -fstype local -o -fstype fdesc -o -fstype kernfs \
- -o -fstype null \
- -o -fstype procfs \) -a -prune -o \
+ (
+ # Turn "foo !bar bax" into "-fstype foo -o ! -fstype bar -o -fstype bax"
+ ignfstypes=`echo $check_devices_ignore_fstypes | \
+ sed -e's/\(!*\)\([^[:space:]]\{1,\}\)/-o \1 -fstype \2/g' \
+ -e's/^-o //'`
+ find / \( $ignfstypes \) -a -prune -o \
\( \( -perm -u+s -a ! -type d \) -o \
\( -perm -g+s -a ! -type d \) -o \
-type b -o -type c \) -print0 | \