Use MPC_OBJECT_IP6Q to indicate labeling of struct ip6q rather than

MPC_OBJECT_IPQ; it was already defined, just not used.

Obtained from:	TrustedBSD Project
Sponsored by:	Apple, Inc.
This commit is contained in:
rwatson 2009-01-10 09:17:16 +00:00
parent 8ef504d98d
commit aeaccdebe1
6 changed files with 6 additions and 1 deletions

View File

@ -80,7 +80,7 @@ int
mac_ip6q_init(struct ip6q *q6, int flag)
{
if (mac_labeled & MPC_OBJECT_IPQ) {
if (mac_labeled & MPC_OBJECT_IP6Q) {
q6->ip6q_label = mac_ip6q_label_alloc(flag);
if (q6->ip6q_label == NULL)
return (ENOMEM);

View File

@ -3553,6 +3553,7 @@ static struct mac_policy_ops mac_biba_ops =
MPC_OBJECT_DEVFS | \
MPC_OBJECT_MBUF | \
MPC_OBJECT_IPQ | \
MPC_OBJECT_IP6Q | \
MPC_OBJECT_IFNET | \
MPC_OBJECT_BPFDESC | \
MPC_OBJECT_PIPE | \

View File

@ -3060,6 +3060,7 @@ static struct mac_policy_ops lomac_ops =
MPC_OBJECT_DEVFS | \
MPC_OBJECT_MBUF | \
MPC_OBJECT_IPQ | \
MPC_OBJECT_IP6Q | \
MPC_OBJECT_IFNET | \
MPC_OBJECT_BPFDESC | \
MPC_OBJECT_PIPE | \

View File

@ -3170,6 +3170,7 @@ static struct mac_policy_ops mls_ops =
MPC_OBJECT_DEVFS | \
MPC_OBJECT_MBUF | \
MPC_OBJECT_IPQ | \
MPC_OBJECT_IP6Q | \
MPC_OBJECT_IFNET | \
MPC_OBJECT_BPFDESC | \
MPC_OBJECT_PIPE | \

View File

@ -1808,6 +1808,7 @@ static struct mac_policy_ops stub_ops =
MPC_OBJECT_DEVFS | \
MPC_OBJECT_MBUF | \
MPC_OBJECT_IPQ | \
MPC_OBJECT_IP6Q | \
MPC_OBJECT_IFNET | \
MPC_OBJECT_BPFDESC | \
MPC_OBJECT_PIPE | \

View File

@ -3147,6 +3147,7 @@ static struct mac_policy_ops test_ops =
MPC_OBJECT_DEVFS | \
MPC_OBJECT_MBUF | \
MPC_OBJECT_IPQ | \
MPC_OBJECT_IP6Q | \
MPC_OBJECT_IFNET | \
MPC_OBJECT_BPFDESC | \
MPC_OBJECT_PIPE | \