Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jul 2005 22:24:43 GMT
From:      Wayne Salamon <wsalamon@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 80109 for review
Message-ID:  <200507132224.j6DMOh64007290@repoman.freebsd.org>

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

Change 80109 by wsalamon@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];



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