From owner-p4-projects@FreeBSD.ORG Wed Jul 5 16:10:56 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 DA7CB16A4E0; Wed, 5 Jul 2006 16:10:55 +0000 (UTC) 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 84E0116A4DE for ; Wed, 5 Jul 2006 16:10:55 +0000 (UTC) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5427743D4C for ; Wed, 5 Jul 2006 16:10:55 +0000 (GMT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k65GAtvB093657 for ; Wed, 5 Jul 2006 16:10:55 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k65GAtvN093641 for perforce@freebsd.org; Wed, 5 Jul 2006 16:10:55 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Wed, 5 Jul 2006 16:10:55 GMT Message-Id: <200607051610.k65GAtvN093641@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson To: Perforce Change Reviews Cc: Subject: PERFORCE change 100636 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: Wed, 05 Jul 2006 16:10:56 -0000 http://perforce.freebsd.org/chv.cgi?CH=100636 Change 100636 by rwatson@rwatson_zoo on 2006/07/05 16:10:19 Start dropping in the basics of the new entry point naming scheme. Much to be fleshed out. Affected files ... .. //depot/projects/trustedbsd/mac2/sys/sys/mac_policy.h#2 edit Differences ... ==== //depot/projects/trustedbsd/mac2/sys/sys/mac_policy.h#2 (text+ko) ==== @@ -54,6 +54,24 @@ * * Operations are sorted first by general class of operation, then * alphabetically. + * + * XXX: New World Order + * + * MAC entry points are generally named using the following template: + * + * mpo__() + * + * or: + * + * mpo__check_() + * + * Entry points are sorted by object type; when a single method refers to + * more than one object type, one is considered the "primary" according to + * the following sort order: + * + * inpcb > socket > mbuf + * bpfdesc > ifnet > mbuf + * * > cred */ struct acl; struct bpf_d;