PERFORCE change 80109 for review

Wayne Salamon wsalamon at FreeBSD.org
Wed Jul 13 22:24:43 GMT 2005


http://perforce.freebsd.org/chv.cgi?CH=80109

Change 80109 by wsalamon at rickenbacker on 2005/07/13 22:24:27

	Use the auditon() syscall to turn off auditing because NULL is an
	invalid parameter to auditctl().

Affected files ...

.. //depot/projects/trustedbsd/audit3/usr.sbin/auditon/auditon.c#6 edit

Differences ...

==== //depot/projects/trustedbsd/audit3/usr.sbin/auditon/auditon.c#6 (text+ko) ====

@@ -51,12 +51,14 @@
 main(int argc, char *argv[])
 {
 	const char *path;
+	long cond;
 
 	if (argc != 2)
 		usage();
 
 	if (strcmp(argv[1], "off") == 0) {
-		if (auditctl(NULL) != 0) 
+		cond = AUC_DISABLED;
+		if (auditon(A_SETCOND, &cond, sizeof(cond)) != 0) 
 			errx(-1, "Shutdown %s", strerror(errno));
 	} else {
 		path = argv[1];
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