Date: Sun, 28 Jul 2002 09:44:47 -0700 (PDT) From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 15059 for review Message-ID: <200207281644.g6SGilk6046865@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=15059 Change 15059 by rwatson@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@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207281644.g6SGilk6046865>