PERFORCE change 42243 for review
Andrew Reisse
areisse at FreeBSD.org
Thu Nov 13 15:36:31 GMT 2003
http://perforce.freebsd.org/chv.cgi?CH=42243
Change 42243 by areisse at areisse_ibook on 2003/11/13 07:35:33
call mac_execve and mac_syscall
Affected files ...
.. //depot/projects/trustedbsd/sedarwin/libmac/mac.c#2 edit
.. //depot/projects/trustedbsd/sedarwin/libmac/mac_exec.c#2 edit
Differences ...
==== //depot/projects/trustedbsd/sedarwin/libmac/mac.c#2 (text+ko) ====
@@ -460,3 +460,8 @@
}
return (1);
}
+
+int mac_syscall (const char *policy, int call, void *arg)
+{
+ return syscall (346, policy, call, arg);
+}
==== //depot/projects/trustedbsd/sedarwin/libmac/mac_exec.c#2 (text+ko) ====
@@ -34,12 +34,8 @@
#include <sys/types.h>
#include <sys/mac.h>
-extern int __mac_execve(char *fname, char **argv, char **envv,
- struct mac *mac_p);
-
int
mac_execve(char *fname, char **argv, char **envv, struct mac *label)
{
-
- return (__mac_execve(fname, argv, envv, label));
+ return (syscall (342, fname, argv, envv, label));
}
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