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

Function kern___acl_delete_path

freebsd/kern/vfs_acl.c:487–501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

485}
486
487static int
488kern___acl_delete_path(struct thread *td, const char *path,
489 acl_type_t type, int follow)
490{
491 struct nameidata nd;
492 int error;
493
494 NDINIT(&nd, LOOKUP, follow, UIO_USERSPACE, path, td);
495 error = namei(&nd);
496 if (error == 0) {
497 error = vacl_delete(td, nd.ni_vp, type);
498 NDFREE(&nd, 0);
499 }
500 return (error);
501}
502
503/*
504 * Given a file path, delete an ACL from it.

Callers 2

sys___acl_delete_fileFunction · 0.85
sys___acl_delete_linkFunction · 0.85

Calls 3

nameiFunction · 0.85
vacl_deleteFunction · 0.85
NDFREEFunction · 0.85

Tested by

no test coverage detected