Skip to content

Commit

Permalink
open_tree: Note EPERM
Browse files Browse the repository at this point in the history
This came up in containers/bootc#983 and it's actually *really* cool honestly that one can do a non-cloning (detached) `open_tree` without privileges. Let's note that implicitly by documenting that this can return `EPERM`.
  • Loading branch information
cgwalters authored Dec 19, 2024
1 parent f9d0d0c commit 6e074b9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions open_tree.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ returned, and *errno* is set appropriately.
Search permission is denied for one of the directories in the path
prefix of *pathname*. (See also **path_resolution**(7).)

**EPERM**
The **OPEN_TREE_CLONE** flag was specified and the caller does not
have the required privileges.

**EBADF**
*dirfd* is not a valid open file descriptor.

Expand Down

0 comments on commit 6e074b9

Please sign in to comment.