Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Nov 2004 22:10:04 GMT
From:      "Andrew R. Reiter" <arr@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 64264 for review
Message-ID:  <200411042210.iA4MA4fP041017@repoman.freebsd.org>

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

Change 64264 by arr@arr_audit3_d400laptop on 2004/11/04 22:09:20

	auditctl(2) should be called via syscall(2) for now until we
	add libc support for AUDIT.

Affected files ...

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

Differences ...

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

@@ -38,6 +38,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <sys/syscall.h>
+#include <unistd.h>
 
 static void
 usage(void)
@@ -59,7 +61,8 @@
 		path = NULL;
 	else
 		path = argv[1];
-	if (auditctl(AC_SETLOGFILE, path) == -1)
+	/* if (auditctl(AC_SETLOGFILE, path) == -1) */
+	if (syscall(SYS_auditctl, AC_SETLOGFILE, path) == -1)
 		errx(-1, "%s: %s", path, strerror(errno));
 	exit(0);
 }



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