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

Function mac_vnode_check_chroot

freebsd/security/mac/mac_vfs.c:406–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

404 "struct vnode *");
405
406int
407mac_vnode_check_chroot(struct ucred *cred, struct vnode *dvp)
408{
409 int error;
410
411 ASSERT_VOP_LOCKED(dvp, "mac_vnode_check_chroot");
412
413 MAC_POLICY_CHECK(vnode_check_chroot, cred, dvp, dvp->v_label);
414 MAC_CHECK_PROBE2(vnode_check_chroot, error, cred, dvp);
415
416 return (error);
417}
418
419MAC_CHECK_PROBE_DEFINE4(vnode_check_create, "struct ucred *",
420 "struct vnode *", "struct componentname *", "struct vattr *");

Callers 2

do_jail_attachFunction · 0.85
sys_chrootFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected