Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src check /etc/mail/aliases on check_aliases.
details: https://anonhg.NetBSD.org/src/rev/0881b9e314e6
branches: trunk
changeset: 485784:0881b9e314e6
user: itojun <itojun%NetBSD.org@localhost>
date: Fri May 05 18:28:53 2000 +0000
description:
check /etc/mail/aliases on check_aliases.
/etc/aliases will be checked as well, if exists (for backward compatibility).
diffstat:
etc/security | 12 +++++++-----
share/man/man5/security.conf.5 | 7 +++++--
2 files changed, 12 insertions(+), 7 deletions(-)
diffs (52 lines):
diff -r 3ea9d4f580da -r 0881b9e314e6 etc/security
--- a/etc/security Fri May 05 18:21:06 2000 +0000
+++ b/etc/security Fri May 05 18:28:53 2000 +0000
@@ -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 @@
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.
diff -r 3ea9d4f580da -r 0881b9e314e6 share/man/man5/security.conf.5
--- a/share/man/man5/security.conf.5 Fri May 05 18:21:06 2000 +0000
+++ b/share/man/man5/security.conf.5 Fri May 05 18:28:53 2000 +0000
@@ -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 @@
file.
.It Sy check_aliases
This checks for security problems in the
+.Pa /etc/mail/aliases
+file.
+For backward compatibility,
.Pa /etc/aliases
-file.
+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
Home |
Main Index |
Thread Index |
Old Index