svn commit: r184265 - head/etc/periodic/security
Ed Schouten
ed at FreeBSD.org
Sat Oct 25 11:45:40 PDT 2008
Author: ed
Date: Sat Oct 25 18:45:40 2008
New Revision: 184265
URL: http://svn.freebsd.org/changeset/base/184265
Log:
Sort `mount -p' output by name before checking for any differences.
I noticed on a system at home that restarting named(8) causes the
/var/named/dev mount to be moved to the bottom of the mount list,
because it gets remounted. When I received the daily security email this
morning, I was quite amazed to see that the security report listed the
differences, while it was nothing out of the ordinary.
If we just throw the `mount -p' output through sort(1), we'll only
receive notifications about changes to mounts if something has really
changed.
Modified:
head/etc/periodic/security/200.chkmounts
Modified: head/etc/periodic/security/200.chkmounts
==============================================================================
--- head/etc/periodic/security/200.chkmounts Sat Oct 25 17:21:46 2008 (r184264)
+++ head/etc/periodic/security/200.chkmounts Sat Oct 25 18:45:40 2008 (r184265)
@@ -50,7 +50,7 @@ case "$daily_status_security_chkmounts_e
ignore="${ignore}|^amd:"
esac
[ -n "$ignore" ] && cmd="egrep -v ${ignore#|}" || cmd=cat
- mount -p | ${cmd} |
+ mount -p | sort | ${cmd} |
check_diff mount - "${host} changes in mounted filesystems:"
rc=$?;;
*) rc=0;;
More information about the svn-src-all
mailing list