---
name: "inode_permission"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/inode_permission"
---

# inode\_permission(9)

Check for access rights to a given inode

## NAME

inode\_permission - Check for access rights to a given inode

## SYNOPSIS

**int inode\_permission(struct inode \*** *inode***, int** *mask***);**

## ARGUMENTS

*inode*

Inode to check permission on

*mask*

Right to check for (**MAY\_READ**, **MAY\_WRITE**, **MAY\_EXEC**)

## DESCRIPTION

Check for read/write/execute permissions on an inode. We use fs\[ug\]id for this, letting us set arbitrary permissions for filesystem access without changing the “normal” UIDs which are used for other things.

When checking for MAY\_APPEND, MAY\_WRITE must also be set in *mask*.

## COPYRIGHT
