Requests validation of user access to a virtual node (v-node).
Item | Description |
---|---|
vp | Points to the v-node. |
mode | Identifies the access mode. |
who | Specifies the IDs for which to check access. This parameter
should be one of the following values, which are defined in the /usr/include/sys/access.h file:
|
crp | Points to the cred structure. This structure contains data that the file system can use to validate access permission. |
The vnop_access entry point is used by the logical volume file system to validate access to a v-node. This entry point is used to implement the access subroutine. The v-node is held for the duration of the vnop_access entry point. The v-node count is unchanged by this entry point.
In addition, the vnop_access entry point is used for permissions checks from within the file system implementation. The valid types of access are listed in the /usr/include/sys/access.h file. Current modes are read, write, execute, and existence check.
The vnop_access entry point can be called from the process environment only.
Item | Description |
---|---|
0 | Indicates success. |
Nonzero return values are returned from the /usr/include/sys/errno.h file to indicate failure. A typical value includes:
Item | Description |
---|---|
EACCES | Indicates no access is allowed. |