Displaying 1 result from an estimated 1 matches for "rc_flag".
Did you mean:
rw_flag
2006 Nov 08
2
freebsd-security Digest, Vol 184, Issue 2
...thing if they differ. I hacked this up in a couple
of minutes:
--- /etc/rc.d/dmesg Sat May 6 21:00:26 2006
+++ dmesg Tue Nov 7 20:17:47 2006
@@ -19,8 +19,10 @@
do_dmesg()
{
- rm -f ${dmesg_file}
+ mv -f ${dmesg_file} ${dmesg_file}.prev
( umask 022 ; /sbin/dmesg $rc_flags > ${dmesg_file} )
+ cmp -s ${dmesg_file} ${dmesg_file}.prev || \
+ logger -p security.warn 'dmesg.boot changed from
previous boot'
}
load_rc_config $name
If you like that, I'm willing to discuss it further, and/or commit it
and let the howling tell if it...