[BACK]Return to security CVS log [TXT][DIR] Up to [local] / src / etc

Diff for /src/etc/Attic/security between version 1.65 and 1.66

version 1.65, 2003/11/28 07:32:12 version 1.66, 2003/12/28 19:51:31
Line 472 
Line 472 
 fi  fi
   
 # Display any changes in the setuid/setgid file list.  # Display any changes in the setuid/setgid file list.
 egrep -v '^[bc]' $LIST > $TMP1  FIELDS1=1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,1.9,0
   FIELDS2=2.1,2.2,2.3,2.4,2.5,2.6,2.7,2.8,2.9,0
   egrep -av '^[bc]' $LIST | join -o $FIELDS2 -110 -210 -v2 /dev/null - > $TMP1
 if [ -s $TMP1 ] ; then  if [ -s $TMP1 ] ; then
         # Check to make sure uudecode isn't setuid.          # Check to make sure uudecode isn't setuid.
         if grep -w uudecode $TMP1 > /dev/null ; then          if grep -aw uudecode $TMP1 > /dev/null ; then
                 echo "${pending}\nUudecode is setuid."                  echo "${pending}\nUudecode is setuid."
                 pending=                  pending=
         fi          fi
Line 488 
Line 490 
                         :                          :
                 else                  else
                         > $TMP2                          > $TMP2
                         join -110 -210 -v2 $CUR $TMP1 > $OUTPUT                          join -o $FIELDS2 -110 -210 -v2 $CUR $TMP1 > $OUTPUT
                         if [ -s $OUTPUT ] ; then                          if [ -s $OUTPUT ] ; then
                                 echo "${pending}Setuid additions:"                                  echo "${pending}Setuid additions:"
                                 pending=                                  pending=
                                 tee -a $TMP2 < $OUTPUT                                  tee -a $TMP2 < $OUTPUT | column -t
                                 echo ""                                  echo ""
                         fi                          fi
   
                         join -110 -210 -v1 $CUR $TMP1 > $OUTPUT                          join -o $FIELDS1 -110 -210 -v1 $CUR $TMP1 > $OUTPUT
                         if [ -s $OUTPUT ] ; then                          if [ -s $OUTPUT ] ; then
                                 echo "${pending}Setuid deletions:"                                  echo "${pending}Setuid deletions:"
                                 pending=                                  pending=
                                 tee -a $TMP2 < $OUTPUT                                  tee -a $TMP2 < $OUTPUT | column -t
                                 echo ""                                  echo ""
                         fi                          fi
   
Line 543 
Line 545 
         echo ""          echo ""
 fi  fi
   
   FIELDS1=1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,1.9,1.10,0
   FIELDS2=2.1,2.2,2.3,2.4,2.5,2.6,2.7,2.8,2.9,2.10,0
 # Display any changes in the device file list.  # Display any changes in the device file list.
 egrep '^[bc]' $LIST | sort +10 > $TMP1  egrep -a '^[bc]' $LIST | sort +10 | \
       join -o $FIELDS2 -111 -211 -v2 /dev/null - > $TMP1
 if [ -s $TMP1 ] ; then  if [ -s $TMP1 ] ; then
         CUR=/var/backups/device.current          CUR=/var/backups/device.current
         BACK=/var/backups/device.backup          BACK=/var/backups/device.backup
Line 554 
Line 559 
                         :                          :
                 else                  else
                         > $TMP2                          > $TMP2
                         join -111 -211 -v2 $CUR $TMP1 > $OUTPUT                          join -o $FIELDS2 -111 -211 -v2 $CUR $TMP1 > $OUTPUT
                         if [ -s $OUTPUT ] ; then                          if [ -s $OUTPUT ] ; then
                                 echo "Device additions:"                                  echo "Device additions:"
                                 tee -a $TMP2 < $OUTPUT                                  tee -a $TMP2 < $OUTPUT | column -t
                                 echo ""                                  echo ""
                         fi                          fi
   
                         join -111 -211 -v1 $CUR $TMP1 > $OUTPUT                          join -o $FIELDS1 -111 -211 -v1 $CUR $TMP1 > $OUTPUT
                         if [ -s $OUTPUT ] ; then                          if [ -s $OUTPUT ] ; then
                                 echo "Device deletions:"                                  echo "Device deletions:"
                                 tee -a $TMP2 < $OUTPUT                                  tee -a $TMP2 < $OUTPUT | column -t
                                 echo ""                                  echo ""
                         fi                          fi
   

Legend:
Removed from v.1.65  
changed lines
  Added in v.1.66