Rechercher une page de manuel

Chercher une autre page de manuel:

VOP_ACCESS.9freebsd

Langue: en

Autres versions - même langue

Version: 365319 (ubuntu - 25/10/10)

Section: 9 (Appels noyau Linux)


BSD mandoc

NAME

VOP_ACCESS VOP_ACCESSX - check access permissions of a file or Unix domain socket

SYNOPSIS

In sys/param.h In sys/vnode.h Ft int Fn VOP_ACCESS struct vnode *vp accmode_t accmode struct ucred *cred struct thread *td Ft int Fn VOP_ACCESSX struct vnode *vp accmode_t accmode struct ucred *cred struct thread *td

DESCRIPTION

This entry point checks the access permissions of the file against the given credentials.

Its arguments are:

Fa vp
The vnode of the file to check.
Fa accmode
The type of access required.
Fa cred
The user credentials to check.
Fa td
The thread which is checking.

The Fa accmode is a mask which can contain flags described in <sys/vnode.h>, e.g. VREAD VWRITE or VEXEC For Fn VOP_ACCESS , the only flags that may be set in Fa accmode are VEXEC VWRITE VREAD VADMIN and VAPPEND To check for other flags, one has to use Fn VOP_ACCESSX instead.

LOCKS

The vnode will be locked on entry and should remain locked on return.

RETURN VALUES

If the file is accessible in the specified way, then zero is returned, otherwise an appropriate error code is returned.

ERRORS

Bq Er EPERM
An attempt was made to change an immutable file.
Bq Er EACCES
The permission bits the file mode or the ACL do not permit the requested access.

SEE ALSO

vaccess(9), vaccess_acl_posix1e9, vnode(9)

AUTHORS

This manual page was written by An Doug Rabson .
< ptitlouis> debian c'est pas lent
< ptitlouis> ca a un cycle de developpement différent
-- ptitlouis in "Rejoins nous, on voit les choses différemment maintenant" --
#debian-fr