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

Function kern___acl_set_path

freebsd/kern/vfs_acl.c:411–425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

409}
410
411static int
412kern___acl_set_path(struct thread *td, const char *path,
413 acl_type_t type, const struct acl *aclp, int follow)
414{
415 struct nameidata nd;
416 int error;
417
418 NDINIT(&nd, LOOKUP, follow | AUDITVNODE1, UIO_USERSPACE, path, td);
419 error = namei(&nd);
420 if (error == 0) {
421 error = vacl_set_acl(td, nd.ni_vp, type, aclp);
422 NDFREE(&nd, 0);
423 }
424 return (error);
425}
426
427/*
428 * Given a file descriptor, get an ACL for it.

Callers 2

sys___acl_set_fileFunction · 0.85
sys___acl_set_linkFunction · 0.85

Calls 3

nameiFunction · 0.85
vacl_set_aclFunction · 0.85
NDFREEFunction · 0.85

Tested by

no test coverage detected