Debian Codegraph @

docs/custom_fs_rules.md

raw
1 # Custom Landlock Filesystem Rules
2
3 The helper function `landlock.PathAccess(accesses, paths...)`
4 constructs Landlock filesystem rules with detailed control over all
5 individual Landlock filesystem access rights.
6
7 When constructing these, take the following rules into account:
8
9 * A file that has the `LANDLOCK_ACCESS_FS_WRITE_FILE` right must also
10 have the `LANDLOCK_ACCESS_FS_TRUNCATE` right, and vice versa. There
11 is some non-obvious functional overlap between these two and they
12 are best handled together.
13 * The `LANDLOCK_ACCESS_FS_REFER` right is implicitly denied in
14 Landlock ABI V1. When a rule is asking for this access right,
15 enforcement of the ruleset will require Landlock ABI V2 or higher.