aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_mbuf.c
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2007-10-24 19:04:04 +0000
committerRobert Watson <rwatson@FreeBSD.org>2007-10-24 19:04:04 +0000
commit30d239bc4c510432e65a84fa1c14ed67a3ab1c92 (patch)
treefea282db79628eed98808fd38cc46445b2f97ca5 /sys/kern/kern_mbuf.c
parent21439626472b5a6d5317cc38b361bc2368f97d93 (diff)
downloadsrc-30d239bc4c510432e65a84fa1c14ed67a3ab1c92.tar.gz
src-30d239bc4c510432e65a84fa1c14ed67a3ab1c92.zip
Merge first in a series of TrustedBSD MAC Framework KPI changes
from Mac OS X Leopard--rationalize naming for entry points to the following general forms: mac_<object>_<method/action> mac_<object>_check_<method/action> The previous naming scheme was inconsistent and mostly reversed from the new scheme. Also, make object types more consistent and remove spaces from object types that contain multiple parts ("posix_sem" -> "posixsem") to make mechanical parsing easier. Introduce a new "netinet" object type for certain IPv4/IPv6-related methods. Also simplify, slightly, some entry point names. All MAC policy modules will need to be recompiled, and modules not updates as part of this commit will need to be modified to conform to the new KPI. Sponsored by: SPARTA (original patches against Mac OS X) Obtained from: TrustedBSD Project, Apple Computer
Notes
Notes: svn path=/head/; revision=172930
Diffstat (limited to 'sys/kern/kern_mbuf.c')
-rw-r--r--sys/kern/kern_mbuf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_mbuf.c b/sys/kern/kern_mbuf.c
index 9015e245b3db..97f4075e9437 100644
--- a/sys/kern/kern_mbuf.c
+++ b/sys/kern/kern_mbuf.c
@@ -323,7 +323,7 @@ mb_ctor_mbuf(void *mem, int size, void *arg, int how)
SLIST_INIT(&m->m_pkthdr.tags);
#ifdef MAC
/* If the label init fails, fail the alloc */
- error = mac_init_mbuf(m, how);
+ error = mac_mbuf_init(m, how);
if (error)
return (error);
#endif
@@ -543,7 +543,7 @@ mb_ctor_pack(void *mem, int size, void *arg, int how)
SLIST_INIT(&m->m_pkthdr.tags);
#ifdef MAC
/* If the label init fails, fail the alloc */
- error = mac_init_mbuf(m, how);
+ error = mac_mbuf_init(m, how);
if (error)
return (error);
#endif