PERFORCE change 69995 for review

Wayne Salamon wsalamon at FreeBSD.org
Sun Jan 30 18:23:12 GMT 2005


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

Change 69995 by wsalamon at rickenbacker on 2005/01/30 18:22:23

	Replace syscall() call with direct call to auditctl().

Affected files ...

.. //depot/projects/trustedbsd/audit3/tools/regression/audit/test/lib/audittest.c#3 edit

Differences ...

==== //depot/projects/trustedbsd/audit3/tools/regression/audit/test/lib/audittest.c#3 (text+ko) ====

@@ -30,7 +30,6 @@
 #include <stdbool.h>
 #include <stdlib.h>
 #include <fcntl.h>
-#include <sys/syscall.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <bsm/audit.h>
@@ -81,7 +80,7 @@
 	auinfo.ai_termid.port = INITIAL_PORT;
 	auinfo.ai_termid.machine = INITIAL_MACHINE;
 
-	ret = syscall(SYS_setaudit, &auinfo);
+	ret = setaudit(&auinfo);
 	if (ret != 0) {
 		perror("setaudit() failed");
 		exit(-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