mac_syscall() not setup in sedarwin

mike halderman trustedbsd-discuss at mrh.org
Thu Jan 15 17:55:34 GMT 2004


Looks like an entry needs to be added for mac_syscall() in init_sysent.c.
Based on libmac/mac.c, 346 is the expected number.

-mike

Index: init_sysent.c
===================================================================
RCS file: /opt/io/mrh/p4cvs/projects//trustedbsd/sedarwin/apsl/xnu/bsd/kern/init_sysent.c,v
retrieving revision 1.6
diff -u -r1.6 init_sysent.c
--- init_sysent.c	10 Nov 2003 16:54:53 -0000	1.6
+++ init_sysent.c	15 Jan 2004 16:51:17 -0000
@@ -334,6 +334,7 @@
 int __mac_get_pid();
 int __mac_set_proc();
 int mac_execve();
+int mac_syscall();
 #endif
 
 /*
@@ -750,6 +751,7 @@
 	syss(__mac_get_pid,2),	/* 343 */
 	syss(__mac_set_file,2),	/* 344 */
 	syss(__mac_set_link,2),	/* 345 */
+	syss(mac_syscall,2),	/* 346 */
 #else
 	syss(nosys,0),		/* 338 */
 	syss(nosys,0),		/* 339 */
@@ -759,8 +761,8 @@
 	syss(nosys,0),		/* 343 */
 	syss(nosys,0),		/* 344 */
 	syss(nosys,0),		/* 345 */
-#endif
 	syss(nosys,0),		/* 346 */
+#endif
 	syss(nosys,0),		/* 347 */
 	syss(nosys,0),		/* 348 */
 	syss(nosys,0),		/* 349 */

To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-discuss" in the body of the message



More information about the trustedbsd-discuss mailing list