[PATCH 5.15.y v2] selftests/landlock: Add tests for whiteout object creation
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Wed Sep 23 16:21:14 UTC 2026
> From: Günther Noack <gnoack at google.com>
>
> [ Upstream commit ee890889b30b22f9a21636061def7a04e4f89380 ]
>
> Add tests to check that whiteout object creation is guarded by
> LANDLOCK_ACCESS_FS_MAKE_REG, in the cases where these are created from
> userspace:
>
> * Conventional creation with mknod()
> * Linking or renaming an existing whiteout object
> * renameat2() with RENAME_WHITEOUT,
> which creates a new whiteout object in the source location
> * renameat2() with RENAME_EXCHANGE,
> with one of the renamed objects being a whiteout object
>
> Signed-off-by: Günther Noack <gnoack at google.com>
> Link: https://patch.msgid.link/20260813093157.1436894-4-gnoack@google.com
> [mic: Update commit message as requested]
> Signed-off-by: Mickaël Salaün <mic at digikod.net>
> [mic: Backport: add enforce_fs() and the missing s3 fixture paths, and
> adapt tests to ABI 1 without REFER]
> Signed-off-by: Mickaël Salaün <mic at digikod.net>
Sashiko has reviewed this patch and found no issues. It looks great!
--
Sashiko AI review · https://sashiko.dev/#/patchset/aee05236ad5600be7fc35c089b345eadf6bcaba8.1790169454.git.mic@digikod.net?part=1
More information about the Linux-security-module-archive
mailing list