file_permission(9)

file_permission9

Check for additional access rights to a given file

Usage

int file_permission(struct file * file, int mask);

Arguments

file

file to check access rights for

mask

right to check for (MAY_READ, MAY_WRITE, MAY_EXEC)

Overview

Used to check for read/write/execute permissions on an already opened file.

Note

Do not use this function in new code. All access checks should be done using inode_permission.

Releases

3 releases since Debian 4.0 (Etch); the text changed 2 times.

  1. 4.0
  2. 5.0
  3. 6.0

From linux-manual-2.6.32 2.6.32-48squeeze6 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.