From owner-p4-projects@FreeBSD.ORG Thu Feb 9 18:58:07 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id E82D016A423; Thu, 9 Feb 2006 18:58:06 +0000 (GMT) X-Original-To: perforce@FreeBSD.org Delivered-To: perforce@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A7F3316A420 for ; Thu, 9 Feb 2006 18:58:06 +0000 (GMT) (envelope-from deker@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6BA0F43D48 for ; Thu, 9 Feb 2006 18:58:06 +0000 (GMT) (envelope-from deker@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k19Iw6FC027579 for ; Thu, 9 Feb 2006 18:58:06 GMT (envelope-from deker@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k19Iw6va027576 for perforce@freebsd.org; Thu, 9 Feb 2006 18:58:06 GMT (envelope-from deker@FreeBSD.org) Date: Thu, 9 Feb 2006 18:58:06 GMT Message-Id: <200602091858.k19Iw6va027576@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to deker@FreeBSD.org using -f From: Rob Deker To: Perforce Change Reviews Cc: Subject: PERFORCE change 91445 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Feb 2006 18:58:07 -0000 http://perforce.freebsd.org/chv.cgi?CH=91445 Change 91445 by deker@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;