PERFORCE change 15059 for review
Robert Watson
rwatson at freebsd.org
Sun Jul 28 16:44:47 GMT 2002
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=15059
Change 15059 by rwatson at rwatson_paprika on 2002/07/28 09:44:45
Move mac_biba_check_ifnet_transmit() to a more logical point in
the file.
Affected files ...
.. //depot/projects/trustedbsd/mac/sys/security/mac_biba/mac_biba.c#77 edit
Differences ...
==== //depot/projects/trustedbsd/mac/sys/security/mac_biba/mac_biba.c#77 (text+ko) ====
@@ -1198,6 +1198,21 @@
return (0);
}
+static int
+mac_biba_check_ifnet_transmit(struct ifnet *ifnet, struct label *ifnetlabel,
+ struct mbuf *m, struct label *mbuflabel)
+{
+ struct mac_biba *p, *i;
+
+ if (!mac_biba_enabled)
+ return (0);
+
+ p = SLOT(mbuflabel);
+ i = SLOT(ifnetlabel);
+
+ return (mac_biba_single_in_range(p, i) ? 0 : EACCES);
+}
+
static int
mac_biba_check_proc_debug(struct ucred *cred, struct proc *proc)
{
@@ -1288,21 +1303,6 @@
return (0);
}
-static int
-mac_biba_check_ifnet_transmit(struct ifnet *ifnet, struct label *ifnetlabel,
- struct mbuf *m, struct label *mbuflabel)
-{
- struct mac_biba *p, *i;
-
- if (!mac_biba_enabled)
- return (0);
-
- p = SLOT(mbuflabel);
- i = SLOT(ifnetlabel);
-
- return (mac_biba_single_in_range(p, i) ? 0 : EACCES);
-}
-
static int
mac_biba_check_relabel_ifnet(struct ucred *cred, struct ifnet *ifnet,
struct label *ifnetlabel, struct label *newlabel)
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message
More information about the trustedbsd-cvs
mailing list