Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Jan 2006 01:23:26 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 90753 for review
Message-ID:  <200601310123.k0V1NQP4081462@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=90753

Change 90753 by rwatson@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601310123.k0V1NQP4081462>