Date: Sat, 25 Oct 2008 18:45:40 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r184265 - head/etc/periodic/security Message-ID: <200810251845.m9PIjesE048003@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810251845.m9PIjesE048003>