PERFORCE change 90753 for review
Robert Watson
rwatson at FreeBSD.org
Tue Jan 31 01:23:26 GMT 2006
http://perforce.freebsd.org/chv.cgi?CH=90753
Change 90753 by rwatson at rwatson_peppercorn on 2006/01/31 01:22:49
Correct an inaccurate comment: we send audit log errors to the
system log, not the audit log, for obvious reasons.
Log errno information when exec() fails.
Fix formatting.
Affected files ...
.. //depot/projects/trustedbsd/openbsm/bin/auditd/audit_warn.c#3 edit
Differences ...
==== //depot/projects/trustedbsd/openbsm/bin/auditd/audit_warn.c#3 (text+ko) ====
@@ -37,7 +37,7 @@
#include "auditd.h"
/*
- * Write to the audit log.
+ * Write an audit-related error to the system log via syslog(3).
*/
static int
auditwarnlog(char *args[])
@@ -59,7 +59,8 @@
* Child.
*/
execv(AUDITWARN_SCRIPT, loc_args);
- syslog(LOG_ERR, "Could not exec %s\n", AUDITWARN_SCRIPT);
+ syslog(LOG_ERR, "Could not exec %s (%m)\n",
+ AUDITWARN_SCRIPT);
exit(1);
}
/*
@@ -104,6 +105,7 @@
/*
* Indicates that someone other than the audit daemon turned off auditing.
* XXX Its not clear at this point how this function will be invoked.
+ *
* XXXRW: This function is not used.
*/
int
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message
More information about the trustedbsd-cvs
mailing list