linux/Documentation/userspace-api
Günther Noack 3457a5ccac
landlock: Document fallocate(2) as another truncation corner case
Reinforce the already stated policy that LANDLOCK_ACCESS_FS_TRUNCATE should
always go hand in hand with LANDLOCK_ACCESS_FS_WRITE_FILE, as their
meanings and enforcement overlap in counterintuitive ways.

On many common file systems, fallocate(2) offers a way to shorten files as
long as the file is opened for writing, side-stepping the
LANDLOCK_ACCESS_FS_TRUNCATE right.

Assisted-by: Gemini-CLI:gemini-3.1
Signed-off-by: Günther Noack <gnoack@google.com>
Link: https://lore.kernel.org/r/20260401150911.1038072-1-gnoack@google.com
Signed-off-by: Mickaël Salaün <mic@digikod.net>
2026-04-07 18:51:11 +02:00
..
accelerators
ebpf
fwctl docs: Improve grammar in Userspace API/fwctl 2025-06-09 15:11:46 -06:00
gpio Documentation: use a source-read extension for the index link boilerplate 2026-01-23 11:59:34 -07:00
ioctl Char/Misc/IIO driver changes for 7.0-rc1 2026-02-17 09:11:04 -08:00
media [GIT PULL for v7.0] media updates 2026-02-11 12:20:25 -08:00
netlink docs: netlink: Couple of intro-specs documentation fixes 2025-11-06 14:50:59 -08:00
ELF.rst
check_exec.rst
dcdbas.rst
dma-buf-alloc-exchange.rst
dma-buf-heaps.rst dma-buf: heaps: cma: Create CMA heap for each CMA reserved region 2025-10-18 21:31:22 +05:30
futex2.rst
index.rst Scheduler changes for v7.0: 2026-02-10 12:50:10 -08:00
iommufd.rst iommufd: Fix spelling errors in iommufd.rst 2025-08-18 11:15:06 -03:00
isapnp.rst
landlock.rst landlock: Document fallocate(2) as another truncation corner case 2026-04-07 18:51:11 +02:00
liveupdate.rst docs: add luo documentation 2025-11-27 14:24:39 -08:00
lsm.rst
mfd_noexec.rst
mseal.rst LoongArch: Enable ARCH_SUPPORTS_MSEAL_SYSTEM_MAPPINGS 2025-05-30 21:45:42 +08:00
no_new_privs.rst
ntsync.rst
perf_ring_buffer.rst
rseq.rst selftests/rseq: Add rseq slice histogram script 2026-01-22 11:11:20 +01:00
seccomp_filter.rst
spec_ctrl.rst Documentation/x86: Fix PR_SET_SPECULATION_CTRL error codes 2025-12-29 16:27:45 +01:00
sysfs-platform_profile.rst docs: Fix typos, improve grammar in Userspace API 2025-06-09 15:13:33 -06:00
tee.rst
unshare.rst
vduse.rst Documentation: Add documentation for VDUSE Address Space IDs 2026-01-28 15:32:18 -05:00