2 .\" Copyright (c) 1999 Robert N. M. Watson
3 .\" All rights reserved.
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\" notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\" notice, this list of conditions and the following disclaimer in the
12 .\" documentation and/or other materials provided with the distribution.
14 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 .Nd check an access control list for a vnode
39 .Fn VOP_ACLCHECK "struct vnode *vp" "acl_type_t type" "struct acl *aclp" "struct ucred *cred" "struct thread *td"
41 This vnode call may be used to determine the validity of a particular access
42 control list (ACL) for a particular file or directory.
47 The vnode of the file or directory.
49 The type of ACL to check.
51 A pointer to an ACL structure from which to retrieve the ACL data.
53 The user credentials to use in authorizing the request.
55 The thread checking the ACL.
60 pointer may be NULL to indicate that access control checks are not to be
61 performed, if possible.
62 This cred setting might be used to allow the
63 kernel to authorize ACL verification that the active process might not be
66 The vnode ACL interface defines the syntax, and not semantics, of file and
67 directory ACL interfaces.
68 More information about ACL management in kernel
72 No locks are required to call this vnode method, and any locks held on
73 entry will be held on exit.
77 pointer points to a valid ACL of type
81 then zero is returned.
82 Otherwise, an appropriate error code is returned.
86 The ACL type passed is invalid for this vnode, or the ACL data is invalid.
88 The file or directory ACL does not permit access.
90 Sufficient memory is not available to fulfill the request.
92 The file system does not support
101 This manual page was written by