]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
s390/hypfs: Enable limited access during lockdown
authorPeter Oberparleiter <oberpar@linux.ibm.com>
Thu, 21 Aug 2025 13:12:37 +0000 (15:12 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:31:16 +0000 (16:31 +0200)
commite133ea6dd6a74ea25ea6af0d843a4b5b7185c0d0
tree41b8ec8bcb3f1da24212b6eb1d2ddd5b809b5a86
parent782a7d2ddbf2939432f4ffb9e9283bc190e100c7
s390/hypfs: Enable limited access during lockdown

[ Upstream commit 3868f910440c47cd5d158776be4ba4e2186beda7 ]

When kernel lockdown is active, debugfs_locked_down() blocks access to
hypfs files that register ioctl callbacks, even if the ioctl interface
is not required for a function. This unnecessarily breaks userspace
tools that only rely on read operations.

Resolve this by registering a minimal set of file operations during
lockdown, avoiding ioctl registration and preserving access for affected
tooling.

Note that this change restores hypfs functionality when lockdown is
active from early boot (e.g. via lockdown=integrity kernel parameter),
but does not apply to scenarios where lockdown is enabled dynamically
while Linux is running.

Tested-by: Mete Durlu <meted@linux.ibm.com>
Reviewed-by: Vasily Gorbik <gor@linux.ibm.com>
Fixes: 5496197f9b08 ("debugfs: Restrict debugfs when the kernel is locked down")
Signed-off-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/s390/hypfs/hypfs_dbfs.c