---
name: "inode_owner_or_capable"
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_owner_or_capable"
---

# inode\_owner\_or\_capable(9)

check current task permissions to inode

## NAME

inode\_owner\_or\_capable - check current task permissions to inode

## SYNOPSIS

**bool inode\_owner\_or\_capable(const struct inode \*** *inode***);**

## ARGUMENTS

*inode*

inode being checked

## DESCRIPTION

Return true if current either has CAP\_FOWNER in a namespace with the inode owner uid mapped, or owns the file.

## COPYRIGHT
