This entry point checks the access permissions of the file against the
given credentials.
Its arguments are:
vp
|
|
The vnode of the file to check.
|
accmode
|
|
The type of access required.
|
cred
|
|
The user credentials to check.
|
td
|
|
The thread which is checking.
|
The
accmode
is a mask which can contain flags described in <sys/vnode.h>, e.g.
VREAD,
VWRITE
or
VEXEC.
For
VOP_ACCESS(),
the only flags that may be set in
accmode
are
VEXEC,
VWRITE,
VREAD,
VADMIN
and
VAPPEND.
To check for other flags, one has to use
VOP_ACCESSX()
instead.