landlock: Document Landlock's file truncation support
authorGünther Noack <gnoack3000@gmail.com>
Tue, 18 Oct 2022 18:22:16 +0000 (20:22 +0200)
committerMickaël Salaün <mic@digikod.net>
Wed, 19 Oct 2022 07:01:48 +0000 (09:01 +0200)
commitede2a34363a5dddd5e6b37b8e52c5041d1e78209
tree0d2d2206e7fc3a8f63b09094c96fb8de6f84bace
parentfaeb9197669c23d983f6485d278b20f0194432f4
landlock: Document Landlock's file truncation support

Use the LANDLOCK_ACCESS_FS_TRUNCATE flag in the tutorial.

Adapt the backwards compatibility example and discussion to remove the
truncation flag where needed.

Point out potential surprising behaviour related to truncate.

Signed-off-by: Günther Noack <gnoack3000@gmail.com>
Link: https://lore.kernel.org/r/20221018182216.301684-12-gnoack3000@gmail.com
Signed-off-by: Mickaël Salaün <mic@digikod.net>
Documentation/userspace-api/landlock.rst