.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "GENERIC_PERMISSION" "9" "09 October 2005" "" ""
.SH NAME
generic_permission \- check for access rights on a Posix-like filesystem
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int generic_permission (struct inode * \fIinode\fB, int \fImask\fB, int (*\fIcheck_acl\fB)
struct inode *inode, int mask);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIinode\fB\fR
inode to check access rights for
.TP
\fB\fImask\fB\fR
right to check for (MAY_READ, MAY_WRITE, MAY_EXEC)
.TP
\fB\fIcheck_acl\fB\fR
optional callback to check for Posix ACLs
.SH "DESCRIPTION"
.PP
Used to check for read/write/execute permissions on a file.
We use ``fsuid'' for this, letting us set arbitrary permissions
for filesystem access without changing the ``normal'' uids which
are used for other things..