[BACK]Return to security CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / etc

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/etc/security between version 1.94.2.3 and 1.94.2.3.2.2

version 1.94.2.3, 2006/10/06 20:51:09 version 1.94.2.3.2.2, 2007/06/28 18:14:49
Line 40  if [ ! -d "$work_dir" ]; then
Line 40  if [ ! -d "$work_dir" ]; then
         mkdir -p "$work_dir"          mkdir -p "$work_dir"
 fi  fi
   
 SECUREDIR=`mktemp -d /tmp/_securedir.XXXXXX` || exit 1  SECUREDIR=$(mktemp -d -t _securedir) || exit 1
   
 trap "/bin/rm -rf $SECUREDIR ; exit 0" EXIT INT QUIT PIPE  trap "/bin/rm -rf $SECUREDIR ; exit 0" EXIT INT QUIT PIPE
   
Line 494  if checkyesno check_homes; then
Line 494  if checkyesno check_homes; then
         awk -v "usergroups=$permit_usergroups" '          awk -v "usergroups=$permit_usergroups" '
              $1 != $4 && $4 != "root" \               $1 != $4 && $4 != "root" \
                 { print "user " $1 " home directory is owned by " $4 }                  { print "user " $1 " home directory is owned by " $4 }
              $2 ~ /^-....w/ && (!usergroups || $5 != $1) \               $2 ~ /^d....w/ && (!usergroups || $5 != $1) \
                 { print "user " $1 " home directory is group writable" }                  { print "user " $1 " home directory is group writable" }
              $2 ~ /^-.......w/ \               $2 ~ /^d.......w/ \
                 { print "user " $1 " home directory is other writable" }' \                  { print "user " $1 " home directory is other writable" }' \
             > $OUTPUT              > $OUTPUT
         if [ -s $OUTPUT ] ; then          if [ -s $OUTPUT ] ; then

Legend:
Removed from v.1.94.2.3  
changed lines
  Added in v.1.94.2.3.2.2

CVSweb <webmaster@jp.NetBSD.org>