VOP_GETACL(9)
π NAME π
VOP_GETACL β retrieve access control list for a vnode. that's the name section, short and iconic β¨
okay bestie, welcome to VOP_GETACL(9), straight from the Kernel Developer's Manual. this page is lowkey all about pulling the access control list (ACL) off a file or directory β very demure, very kernel π
β¨ SYNOPSIS β¨
#include <sys/param.h>
#include <sys/vnode.h>
#include <sys/acl.h>
int
VOP_GETACL(struct vnode *vp, acl_type_t type, struct acl *aclp,
struct ucred *cred, struct thread *td);
πΈ DESCRIPTION πΈ
this vnode call may be used to retrieve the access control list (ACL) from a file or directory. no cap, that's the whole mission π«Ά
its arguments are:
vpβ the vnode of the file or directory.typeβ the type of ACL to retrieve.aclpβ a pointer to an ACL structure to receive the ACL data.credβ the user credentials to use in authorizing the request.tdβ the thread requesting the ACL.
π okay so thecredpointer may beNULLto indicate that access control checks are not to be performed, if possible. thiscredsetting might be used to allow the kernel to authorize ACL retrieval that the active process might not be permitted to do. that's the tea.
big heads up: the vnode ACL interface defines the syntax, and not semantics, of file and directory ACL interfaces. more information about ACL management in kernel may be found in acl(9) π
π LOCKS π
on entry, the vnode will be locked, and it should remain locked on return β that's the lock vibe check, periodt π
π RETURN VALUES π
if the aclp pointer will point to a valid ACL, then zero is returned. otherwise, an appropriate error code is returned. slay π
π ERRORS π
when things go sideways, bestie, you might see:
[EINVAL]β the ACL type passed is invalid for this vnode.[EACCES]β the caller does not have the appropriate privilege.[ENOMEM]β sufficient memory is not available to fulfill the request.[EOPNOTSUPP]β the file system does not supportVOP_GETACL().
π SEE ALSO π
acl(9), vnode(9), VOP_ACLCHECK(9), VOP_SETACL(9) β go read these too, iykyk π
π«Ά AUTHORS π«Ά
this manual page was written by Robert Watson. give him his flowers π
and that's the whole page, bestie π«Ά source/version: Debian; date: December 23, 1999; page: VOP_GETACL(9) β mwah π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 1999, 2000, 2001 Robert N. M. Watson
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms