diff --git a/sys/security/mac_bsdextended/mac_bsdextended.c b/sys/security/mac_bsdextended/mac_bsdextended.c index d0d6dc15ec58..22a1492d7fde 100644 --- a/sys/security/mac_bsdextended/mac_bsdextended.c +++ b/sys/security/mac_bsdextended/mac_bsdextended.c @@ -412,7 +412,7 @@ mac_bsdextended_check_vnode_deleteacl(struct ucred *cred, struct vnode *vp, return (0); error = VOP_GETATTR(vp, &vap, cred, curthread); - if (error) + if (error) return (error); return (mac_bsdextended_check(cred, vap.va_uid, vap.va_gid, VADMIN)); } @@ -500,10 +500,10 @@ mac_bsdextended_check_vnode_lookup(struct ucred *cred, struct vnode *dvp, { struct vattr vap; int error; - + if (!mac_bsdextended_enabled) return (0); - + error = VOP_GETATTR(dvp, &vap, cred, curthread); if (error) return (error); diff --git a/sys/security/mac_ifoff/mac_ifoff.c b/sys/security/mac_ifoff/mac_ifoff.c index 286e8dd6d863..19bbc79b3330 100644 --- a/sys/security/mac_ifoff/mac_ifoff.c +++ b/sys/security/mac_ifoff/mac_ifoff.c @@ -114,7 +114,7 @@ check_ifnet_incoming(struct ifnet *ifnet, int viabpf) if (!mac_ifoff_enabled) return (0); - if (mac_ifoff_lo_enabled && ifnet->if_type == IFT_LOOP) + if (mac_ifoff_lo_enabled && ifnet->if_type == IFT_LOOP) return (0); if (mac_ifoff_other_enabled && ifnet->if_type != IFT_LOOP) diff --git a/sys/security/mac_lomac/mac_lomac.c b/sys/security/mac_lomac/mac_lomac.c index 0f85c079011c..5ae5ef63e1aa 100644 --- a/sys/security/mac_lomac/mac_lomac.c +++ b/sys/security/mac_lomac/mac_lomac.c @@ -343,7 +343,7 @@ mac_lomac_high_single(struct mac_lomac *mac_lomac) KASSERT((mac_lomac->ml_flags & MAC_LOMAC_FLAG_SINGLE) != 0, ("mac_lomac_high_single: mac_lomac not single")); - + return (mac_lomac->ml_single.mle_type == MAC_LOMAC_TYPE_HIGH); } diff --git a/sys/security/mac_test/mac_test.c b/sys/security/mac_test/mac_test.c index 7948646f9722..02a8de770049 100644 --- a/sys/security/mac_test/mac_test.c +++ b/sys/security/mac_test/mac_test.c @@ -1213,7 +1213,7 @@ mac_test_check_vnode_link(struct ucred *cred, struct vnode *dvp, } static int -mac_test_check_vnode_lookup(struct ucred *cred, struct vnode *dvp, +mac_test_check_vnode_lookup(struct ucred *cred, struct vnode *dvp, struct label *dlabel, struct componentname *cnp) {