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

Function sys___acl_get_fd

freebsd/kern/vfs_acl.c:430–445  ·  view source on GitHub ↗

* Given a file descriptor, get an ACL for it. */

Source from the content-addressed store, hash-verified

428 * Given a file descriptor, get an ACL for it.
429 */
430int
431sys___acl_get_fd(struct thread *td, struct __acl_get_fd_args *uap)
432{
433 struct file *fp;
434 cap_rights_t rights;
435 int error;
436
437 AUDIT_ARG_FD(uap->filedes);
438 error = getvnode(td, uap->filedes,
439 cap_rights_init_one(&rights, CAP_ACL_GET), &fp);
440 if (error == 0) {
441 error = vacl_get_acl(td, fp->f_vnode, uap->type, uap->aclp);
442 fdrop(fp, td);
443 }
444 return (error);
445}
446
447/*
448 * Given a file descriptor, set an ACL for it.

Callers

nothing calls this directly

Calls 2

getvnodeFunction · 0.85
vacl_get_aclFunction · 0.85

Tested by

no test coverage detected