mac_syscall() not setup in sedarwin

Robert Watson rwatson at FreeBSD.org
Tue Jan 20 17:57:59 GMT 2004


On Thu, 15 Jan 2004, mike halderman wrote:

> 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. 

It looks like we've got a similar change in the trustedbsd_sedarwin branch
alread; however, in our version, it's syss(mac_syscall, 3) as there are
three arguments.  I can drop you a fresh code drop if you like, or you can
pull it out of cvsup or p4.

Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
robert at fledge.watson.org      Senior Research Scientist, McAfee Research


> 
> -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
> 


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