]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
debugfs: lockdown: Allow reading debugfs files that are not world readable
authorMichal Suchanek <msuchanek@suse.de>
Tue, 4 Jan 2022 17:05:05 +0000 (18:05 +0100)
committerPaolo Pisati <paolo.pisati@canonical.com>
Fri, 28 Jan 2022 09:59:51 +0000 (10:59 +0100)
commitd6a7628fec8ce8874088d04e10f98784f37b0b2c
tree3ccb82a8dc60e10d1b4b6e18b1a1522c486113a5
parent42286a3d48e4eadb36ea7ed947c170bb39d897cf
debugfs: lockdown: Allow reading debugfs files that are not world readable

BugLink: https://bugs.launchpad.net/bugs/1959376
[ Upstream commit 358fcf5ddbec4e6706405847d6a666f5933a6c25 ]

When the kernel is locked down the kernel allows reading only debugfs
files with mode 444. Mode 400 is also valid but is not allowed.

Make the 444 into a mask.

Fixes: 5496197f9b08 ("debugfs: Restrict debugfs when the kernel is locked down")
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Link: https://lore.kernel.org/r/20220104170505.10248-1-msuchanek@suse.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
fs/debugfs/file.c