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

Function mac_vnode_check_setacl

freebsd/security/mac/mac_vfs.c:789–801  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

787 "struct vnode *", "acl_type_t", "struct acl *");
788
789int
790mac_vnode_check_setacl(struct ucred *cred, struct vnode *vp, acl_type_t type,
791 struct acl *acl)
792{
793 int error;
794
795 ASSERT_VOP_LOCKED(vp, "mac_vnode_check_setacl");
796
797 MAC_POLICY_CHECK(vnode_check_setacl, cred, vp, vp->v_label, type, acl);
798 MAC_CHECK_PROBE4(vnode_check_setacl, error, cred, vp, type, acl);
799
800 return (error);
801}
802
803MAC_CHECK_PROBE_DEFINE4(vnode_check_setextattr, "struct ucred *",
804 "struct vnode *", "int", "const char *");

Callers 1

vacl_set_aclFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected