PERFORCE change 33501 for review

Robert Watson rwatson at FreeBSD.org
Sun Jun 22 03:57:12 GMT 2003


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

Change 33501 by rwatson at rwatson_powerbook on 2003/06/21 20:56:26

	Add labels to struct socket.

Affected files ...

.. //depot/projects/trustedbsd/sedarwin/apsl/xnu/bsd/sys/socketvar.h#2 edit

Differences ...

==== //depot/projects/trustedbsd/sedarwin/apsl/xnu/bsd/sys/socketvar.h#2 (text+ko) ====

@@ -61,6 +61,7 @@
 #define _SYS_SOCKETVAR_H_
 
 #include <sys/appleapiopts.h>
+#include <sys/_label.h>			/* for struct label */
 #include <sys/queue.h>			/* for TAILQ macros */
 #include <sys/select.h>			/* for struct selinfo */
 #include <net/kext_net.h>
@@ -172,6 +173,8 @@
 	void	(*so_upcall) __P((struct socket *so, caddr_t arg, int waitf));
 	caddr_t	so_upcallarg;		/* Arg for above */
 	uid_t	so_uid;			/* who opened the socket */
+	struct	label so_label;		/* MAC label for socket */
+	struct	label so_peerlabel;	/* cached MAC label for socket peer */
 	/* NB: generation count must not be first; easiest to make it last. */
 	so_gen_t so_gencnt;		/* generation count */
 #ifndef __APPLE__
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