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

Function mac_vnode_check_create

freebsd/security/mac/mac_vfs.c:422–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

420 "struct vnode *", "struct componentname *", "struct vattr *");
421
422int
423mac_vnode_check_create(struct ucred *cred, struct vnode *dvp,
424 struct componentname *cnp, struct vattr *vap)
425{
426 int error;
427
428 ASSERT_VOP_LOCKED(dvp, "mac_vnode_check_create");
429
430 MAC_POLICY_CHECK(vnode_check_create, cred, dvp, dvp->v_label, cnp,
431 vap);
432 MAC_CHECK_PROBE4(vnode_check_create, error, cred, dvp, cnp, vap);
433
434 return (error);
435}
436
437MAC_CHECK_PROBE_DEFINE3(vnode_check_deleteacl, "struct ucred *",
438 "struct vnode *", "acl_type_t");

Callers 6

vn_open_credFunction · 0.85
uipc_bindatFunction · 0.85
kern_mknodatFunction · 0.85
kern_mkfifoatFunction · 0.85
kern_symlinkatFunction · 0.85
kern_mkdiratFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected