Include tmpfs filesystems

Sat, 15 Aug 2009 15:29:33 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Sat, 15 Aug 2009 15:29:33 +0200
changeset 11
a1f9231336f2
parent 10
e9b5e53f1d0b
child 12
3179bc45c83c

Include tmpfs filesystems

security.d/chk_setid file | annotate | diff | comparison | revisions
--- a/security.d/chk_setid	Sat Aug 15 14:44:37 2009 +0200
+++ b/security.d/chk_setid	Sat Aug 15 15:29:33 2009 +0200
@@ -1,9 +1,7 @@
 #!/bin/bash
 #
-# $Id$
-#
 #############################################################################
-# Copyright (C) 2005-2007
+# Copyright (C) 2005-2009
 #   
 # Michiel Broek               <mbse@mbse.eu>
 # Beekmansbos 10
@@ -50,7 +48,7 @@
 TMP1=$SECUREDIR/tmp1
 TMP2=$SECUREDIR/tmp2
 TMP3=$SECUREDIR/tmp3
-FSS=`egrep ^\/dev\/ /etc/mtab | awk '{ print $2 }'`
+FSS=$( egrep "^\/dev\/| tmpfs" /etc/mtab | awk '{ print $2 }' )
 
 
 if [ ! -f $CURR ]; then

mercurial