PERFORCE change 64264 for review
Andrew R. Reiter
arr at FreeBSD.org
Thu Nov 4 14:10:05 PST 2004
http://perforce.freebsd.org/chv.cgi?CH=64264
Change 64264 by arr at 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);
}
More information about the p4-projects
mailing list