Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-3-0]: src/etc Pull up following revision(s) (requested by jnemeth...



details:   https://anonhg.NetBSD.org/src/rev/38979d450428
branches:  netbsd-3-0
changeset: 579414:38979d450428
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Sun May 27 20:40:28 2007 +0000

description:
Pull up following revision(s) (requested by jnemeth in ticket #1777):
        etc/security: revision 1.101
PR/36058 -- fix check for group/other writable home directories from
Jukka Salmi

diffstat:

 etc/security |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r ee469ec1d273 -r 38979d450428 etc/security
--- a/etc/security      Tue May 08 09:40:25 2007 +0000
+++ b/etc/security      Sun May 27 20:40:28 2007 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: security,v 1.94.2.1 2005/04/13 15:56:38 tron Exp $
+#      $NetBSD: security,v 1.94.2.1.2.1 2007/05/27 20:40:28 bouyer Exp $
 #      from: @(#)security      8.1 (Berkeley) 6/9/93
 #
 
@@ -494,9 +494,9 @@
        awk -v "usergroups=$permit_usergroups" '
             $1 != $4 && $4 != "root" \
                { 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" }
-            $2 ~ /^-.......w/ \
+            $2 ~ /^d.......w/ \
                { print "user " $1 " home directory is other writable" }' \
            > $OUTPUT
        if [ -s $OUTPUT ] ; then



Home | Main Index | Thread Index | Old Index