check /etc/mail/aliases on check_aliases.

/etc/aliases will be checked as well, if exists (for backward compatibility).
This commit is contained in:
itojun 2000-05-05 18:28:53 +00:00
parent 6bb623fa65
commit 13c8f7a2df
2 changed files with 12 additions and 7 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $NetBSD: security,v 1.42 2000/04/24 23:46:37 fair Exp $
# $NetBSD: security,v 1.43 2000/05/05 18:28:53 itojun Exp $
# from: @(#)security 8.1 (Berkeley) 6/9/93
#
@ -291,12 +291,14 @@ if checkyesno check_ftpusers; then
fi
fi
# Uudecode should not be in the /etc/aliases file.
# Uudecode should not be in the /etc/mail/aliases file.
#
if checkyesno check_aliases; then
if egrep '^[^#]*(uudecode|decode).*\|' /etc/aliases; then
printf "\nEntry for uudecode in /etc/aliases file.\n"
fi
for f in /etc/mail/aliases /etc/aliases; do
if [ -f $f ] && egrep '^[^#]*(uudecode|decode).*\|' $f; then
printf "\nEntry for uudecode in $f file.\n"
fi
done
fi
# Files that should not have + signs.

View File

@ -1,4 +1,4 @@
.\" $NetBSD: security.conf.5,v 1.7 2000/04/24 23:46:38 fair Exp $
.\" $NetBSD: security.conf.5,v 1.8 2000/05/05 18:28:54 itojun Exp $
.\"
.\" Copyright (c) 1996 Matthew R. Green
.\" All rights reserved.
@ -66,8 +66,11 @@ This checks that the correct users are in the
file.
.It Sy check_aliases
This checks for security problems in the
.Pa /etc/aliases
.Pa /etc/mail/aliases
file.
For backward compatibility,
.Pa /etc/aliases
will be checked as well if exists.
.It Sy check_rhosts
This checks for system and user rhosts files with "+" in them.
.It Sy check_homes