security.d/chk_setid

changeset 11
a1f9231336f2
parent 5
fe3130d22800
child 14
59e07bba67cc
equal deleted inserted replaced
10:e9b5e53f1d0b 11:a1f9231336f2
1 #!/bin/bash 1 #!/bin/bash
2 # 2 #
3 # $Id$
4 #
5 ############################################################################# 3 #############################################################################
6 # Copyright (C) 2005-2007 4 # Copyright (C) 2005-2009
7 # 5 #
8 # Michiel Broek <mbse@mbse.eu> 6 # Michiel Broek <mbse@mbse.eu>
9 # Beekmansbos 10 7 # Beekmansbos 10
10 # 1971 BV IJmuiden 8 # 1971 BV IJmuiden
11 # the Netherlands 9 # the Netherlands
48 CURR=${backup_dir}/setid.current 46 CURR=${backup_dir}/setid.current
49 BACK=${backup_dir}/setid.backup 47 BACK=${backup_dir}/setid.backup
50 TMP1=$SECUREDIR/tmp1 48 TMP1=$SECUREDIR/tmp1
51 TMP2=$SECUREDIR/tmp2 49 TMP2=$SECUREDIR/tmp2
52 TMP3=$SECUREDIR/tmp3 50 TMP3=$SECUREDIR/tmp3
53 FSS=`egrep ^\/dev\/ /etc/mtab | awk '{ print $2 }'` 51 FSS=$( egrep "^\/dev\/| tmpfs" /etc/mtab | awk '{ print $2 }' )
54 52
55 53
56 if [ ! -f $CURR ]; then 54 if [ ! -f $CURR ]; then
57 # No database, install new database 55 # No database, install new database
58 find $FSS \( -mount \( -perm -u+s -a ! -type d \) -o \( -perm -g+s -a ! -type d \) \) -print0 | \ 56 find $FSS \( -mount \( -perm -u+s -a ! -type d \) -o \( -perm -g+s -a ! -type d \) \) -print0 | \

mercurial