PERFORCE change 91445 for review

Rob Deker deker at FreeBSD.org
Thu Feb 9 18:58:06 GMT 2006


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

Change 91445 by deker at deker_build1.columbia.sparta.com on 2006/02/09 18:58:00

	per millert:
	
	"Add mac_check_port_receive() entry point. Not currently
	 implemented by any policy."
	
	Submitted by: millert

Affected files ...

.. //depot/projects/trustedbsd/sedarwin7/src/darwin/xnu/bsd/sys/mac_policy.h#12 edit

Differences ...

==== //depot/projects/trustedbsd/sedarwin7/src/darwin/xnu/bsd/sys/mac_policy.h#12 (text+ko) ====

@@ -1994,6 +1994,25 @@
 );
 
 /**
+  @brief Access control check for receiving Mach messsages
+  @param task Label of the receiving task
+  @param port Label of the sending task
+
+  Access control check for receiving messages. The two labels are locked. 
+
+  @warning This entry point can be invoked from many places inside the
+  kernel, with arbitrary other locks held. The implementation of this
+  entry point must not cause page faults, as those are handled by mach
+  messages.
+
+  @return Return 0 if access is granted, non-zero otherwise.
+*/
+typedef int mpo_check_port_receive_t(
+	struct label *task,
+	struct label *sender
+);
+
+/**
   @brief Access control check for obtaining a receive right
   @param task Label of the receiving task
   @param port Label of the affected port
@@ -4141,6 +4160,7 @@
 	mpo_check_port_send_t			*mpo_check_port_send;
 	mpo_check_port_make_send_t		*mpo_check_port_make_send;
 	mpo_check_port_copy_send_t		*mpo_check_port_copy_send;
+	mpo_check_port_receive_t		*mpo_check_port_receive;
 	mpo_check_port_move_receive_t		*mpo_check_port_move_receive;
 	mpo_check_port_hold_send_t		*mpo_check_port_hold_send;
 	mpo_check_port_hold_receive_t		*mpo_check_port_hold_receive;
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