Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Jul 2006 16:10:55 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 100636 for review
Message-ID:  <200607051610.k65GAtvN093641@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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_<object>_<method>()
+ *
+ * or:
+ *
+ *   mpo_<object>_check_<method>()
+ *
+ * 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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607051610.k65GAtvN093641>