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

Function kern___acl_aclcheck_path

freebsd/kern/vfs_acl.c:544–558  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

542}
543
544static int
545kern___acl_aclcheck_path(struct thread *td, const char *path, acl_type_t type,
546 struct acl *aclp, int follow)
547{
548 struct nameidata nd;
549 int error;
550
551 NDINIT(&nd, LOOKUP, follow, UIO_USERSPACE, path, td);
552 error = namei(&nd);
553 if (error == 0) {
554 error = vacl_aclcheck(td, nd.ni_vp, type, aclp);
555 NDFREE(&nd, 0);
556 }
557 return (error);
558}
559
560/*
561 * Given a file descriptor, check an ACL for it.

Callers 2

sys___acl_aclcheck_fileFunction · 0.85
sys___acl_aclcheck_linkFunction · 0.85

Calls 3

nameiFunction · 0.85
vacl_aclcheckFunction · 0.85
NDFREEFunction · 0.85

Tested by

no test coverage detected