Deleted Added
full compact
39c39
< * $FreeBSD: head/sys/security/mac/mac_process.c 104528 2002-10-05 17:44:49Z rwatson $
---
> * $FreeBSD: head/sys/security/mac/mac_process.c 104529 2002-10-05 18:11:36Z rwatson $
801a802,805
> case MAC_CHECK_VNODE_LINK:
> mpc->mpc_ops->mpo_check_vnode_link =
> mpe->mpe_function;
> break;
1834a1839,1864
> mac_check_vnode_link(struct ucred *cred, struct vnode *dvp,
> struct vnode *vp, struct componentname *cnp)
> {
>
> int error;
>
> ASSERT_VOP_LOCKED(dvp, "mac_check_vnode_link");
> ASSERT_VOP_LOCKED(vp, "mac_check_vnode_link");
>
> if (!mac_enforce_fs)
> return (0);
>
> error = vn_refreshlabel(dvp, cred);
> if (error)
> return (error);
>
> error = vn_refreshlabel(vp, cred);
> if (error)
> return (error);
>
> MAC_CHECK(check_vnode_link, cred, dvp, &dvp->v_label, vp,
> &vp->v_label, cnp);
> return (error);
> }
>
> int