summaryrefslogtreecommitdiffstats
path: root/sys/security/mac_mls
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2008-06-13 22:14:15 +0000
committerrwatson <rwatson@FreeBSD.org>2008-06-13 22:14:15 +0000
commitf07c38e84aa87001718dc3e4625bc30c9af3be89 (patch)
tree73b558170fb5c7801f3fea0db4e1007d0362a79d /sys/security/mac_mls
parent0dd1763fd61cb2c8ebe8fb606c1b6ee159ffd6e3 (diff)
downloadFreeBSD-src-f07c38e84aa87001718dc3e4625bc30c9af3be89.zip
FreeBSD-src-f07c38e84aa87001718dc3e4625bc30c9af3be89.tar.gz
The TrustedBSD MAC Framework named struct ipq instances 'ipq', which is the
same as the global variable defined in ip_input.c. Instead, adopt the name 'q' as found in about 1/2 of uses in ip_input.c, preventing a collision on the name. This is non-harmful, but means that search and replace on the global works less well (as in the virtualization work), as well as indexing tools. MFC after: 1 week Reported by: julian
Diffstat (limited to 'sys/security/mac_mls')
-rw-r--r--sys/security/mac_mls/mac_mls.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/sys/security/mac_mls/mac_mls.c b/sys/security/mac_mls/mac_mls.c
index acf9423..d92b739 100644
--- a/sys/security/mac_mls/mac_mls.c
+++ b/sys/security/mac_mls/mac_mls.c
@@ -1075,36 +1075,36 @@ mls_inpcb_sosetlabel(struct socket *so, struct label *solabel,
}
static void
-mls_ipq_create(struct mbuf *m, struct label *mlabel, struct ipq *ipq,
- struct label *ipqlabel)
+mls_ipq_create(struct mbuf *m, struct label *mlabel, struct ipq *q,
+ struct label *qlabel)
{
struct mac_mls *source, *dest;
source = SLOT(mlabel);
- dest = SLOT(ipqlabel);
+ dest = SLOT(qlabel);
mls_copy_effective(source, dest);
}
static int
-mls_ipq_match(struct mbuf *m, struct label *mlabel, struct ipq *ipq,
- struct label *ipqlabel)
+mls_ipq_match(struct mbuf *m, struct label *mlabel, struct ipq *q,
+ struct label *qlabel)
{
struct mac_mls *a, *b;
- a = SLOT(ipqlabel);
+ a = SLOT(qlabel);
b = SLOT(mlabel);
return (mls_equal_effective(a, b));
}
static void
-mls_ipq_reassemble(struct ipq *ipq, struct label *ipqlabel, struct mbuf *m,
+mls_ipq_reassemble(struct ipq *q, struct label *qlabel, struct mbuf *m,
struct label *mlabel)
{
struct mac_mls *source, *dest;
- source = SLOT(ipqlabel);
+ source = SLOT(qlabel);
dest = SLOT(mlabel);
/* Just use the head, since we require them all to match. */
@@ -1112,8 +1112,8 @@ mls_ipq_reassemble(struct ipq *ipq, struct label *ipqlabel, struct mbuf *m,
}
static void
-mls_ipq_update(struct mbuf *m, struct label *mlabel, struct ipq *ipq,
- struct label *ipqlabel)
+mls_ipq_update(struct mbuf *m, struct label *mlabel, struct ipq *q,
+ struct label *qlabel)
{
/* NOOP: we only accept matching labels, so no need to update */
OpenPOWER on IntegriCloud