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 - #!/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 # from: @(#)security 8.1 (Berkeley) 6/9/93
# #
@ -291,12 +291,14 @@ if checkyesno check_ftpusers; then
fi fi
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 checkyesno check_aliases; then
if egrep '^[^#]*(uudecode|decode).*\|' /etc/aliases; then for f in /etc/mail/aliases /etc/aliases; do
printf "\nEntry for uudecode in /etc/aliases file.\n" if [ -f $f ] && egrep '^[^#]*(uudecode|decode).*\|' $f; then
fi printf "\nEntry for uudecode in $f file.\n"
fi
done
fi fi
# Files that should not have + signs. # 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 .\" Copyright (c) 1996 Matthew R. Green
.\" All rights reserved. .\" All rights reserved.
@ -66,8 +66,11 @@ This checks that the correct users are in the
file. file.
.It Sy check_aliases .It Sy check_aliases
This checks for security problems in the This checks for security problems in the
.Pa /etc/aliases .Pa /etc/mail/aliases
file. file.
For backward compatibility,
.Pa /etc/aliases
will be checked as well if exists.
.It Sy check_rhosts .It Sy check_rhosts
This checks for system and user rhosts files with "+" in them. This checks for system and user rhosts files with "+" in them.
.It Sy check_homes .It Sy check_homes