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

Function mac_vnode_check_access_impl

freebsd/security/mac/mac_vfs.c:374–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372 "struct vnode *", "accmode_t");
373
374int
375mac_vnode_check_access_impl(struct ucred *cred, struct vnode *vp, accmode_t accmode)
376{
377 int error;
378
379 ASSERT_VOP_LOCKED(vp, "mac_vnode_check_access");
380
381 MAC_POLICY_CHECK(vnode_check_access, cred, vp, vp->v_label, accmode);
382 MAC_CHECK_PROBE3(vnode_check_access, error, cred, vp, accmode);
383
384 return (error);
385}
386
387MAC_CHECK_PROBE_DEFINE2(vnode_check_chdir, "struct ucred *",
388 "struct vnode *");

Callers 1

mac_vnode_check_accessFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected