VOP_SETACL(9) | Kernel Developer's Manual | VOP_SETACL(9) |
VOP_SETACL
—
#include <sys/param.h>
#include <sys/vnode.h>
#include <sys/acl.h>
int
VOP_SETACL
(struct
vnode *vp, acl_type_t
type, struct acl
*aclp, kauth_cred_t
cred);
Its arguments are:
The aclp pointer may be
NULL
to indicate that the specified ACL should be
deleted.
The cred pointer may be
NULL
to indicate that access control checks are not
to be performed, if possible. This cred setting might be used to allow the
kernel to authorize ACL changes that the active process might not be
permitted to make.
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).
EACCES
]EINVAL
]ENOMEM
]ENOSPC
]EOPNOTSUPP
]VOP_SETACL
().EROFS
]January 17, 2022 | NetBSD 10.0 |