=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/etc/Attic/security,v retrieving revision 1.79 retrieving revision 1.80 diff -u -r1.79 -r1.80 --- src/etc/Attic/security 2007/10/23 11:19:58 1.79 +++ src/etc/Attic/security 2008/04/17 19:49:16 1.80 @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: security,v 1.79 2007/10/23 11:19:58 sthen Exp $ +# $OpenBSD: security,v 1.80 2008/04/17 19:49:16 sthen Exp $ # from: @(#)security 8.1 (Berkeley) 6/9/93 # @@ -298,6 +298,15 @@ if egrep 'uudecode|decode' /etc/mail/aliases; then echo "\nThere is an entry for uudecode in the /etc/mail/aliases file." fi + +# hostname.if files may contain secrets and should not be +# world-readable. + +for f in /etc/hostname.* ; do + if [ "$(stat -f "%SLp" $f)" != "---" ]; then + echo "\n$f is world readable." + fi +done # Files that should not have + signs. list="/etc/hosts.equiv /etc/shosts.equiv /etc/hosts.lpd"