[PATCH v6 2/6] landlock: Require LANDLOCK_ACCESS_FS_MAKE_REG for whiteout creation

Günther Noack gnoack3000 at gmail.com
Fri Aug 28 15:45:37 UTC 2026


On Thu, Aug 13, 2026 at 11:31:53AM +0200, Günther Noack wrote:
> diff --git a/include/uapi/linux/landlock.h b/include/uapi/linux/landlock.h
> index 7ffe2ef127ee..9c1102ebf06e 100644
> --- a/include/uapi/linux/landlock.h
> +++ b/include/uapi/linux/landlock.h
> @@ -351,6 +351,7 @@ struct landlock_net_port_attr {
>   *   device.
>   * - %LANDLOCK_ACCESS_FS_MAKE_DIR: Create (or rename) a directory.
>   * - %LANDLOCK_ACCESS_FS_MAKE_REG: Create (or rename or link) a regular file.
> + *   This also guards the creation of whiteout objects as used in OverlayFS.

I will send an update to the man page adding this line.

Tracking bug for Landlock man page updates:
https://github.com/landlock-lsm/linux/issues/66

–Günther



More information about the Linux-security-module-archive mailing list