MCPcopy Create free account
hub / github.com/F-Stack/f-stack / mac_vnode_check_write_impl

Function mac_vnode_check_write_impl

freebsd/security/mac/mac_vfs.c:931–945  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

929 "struct ucred *", "struct vnode *");
930
931int
932mac_vnode_check_write_impl(struct ucred *active_cred, struct ucred *file_cred,
933 struct vnode *vp)
934{
935 int error;
936
937 ASSERT_VOP_LOCKED(vp, "mac_vnode_check_write");
938
939 MAC_POLICY_CHECK(vnode_check_write, active_cred, file_cred, vp,
940 vp->v_label);
941 MAC_CHECK_PROBE3(vnode_check_write, error, active_cred, file_cred,
942 vp);
943
944 return (error);
945}
946
947void
948mac_vnode_relabel(struct ucred *cred, struct vnode *vp,

Callers 1

mac_vnode_check_writeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected