mirror_ubuntu-kernels/fs/debugfs
Michal Suchanek d6a7628fec debugfs: lockdown: Allow reading debugfs files that are not world readable
BugLink: https://bugs.launchpad.net/bugs/1959376

[ Upstream commit 358fcf5ddb ]

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: 5496197f9b ("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>
2022-01-28 10:59:51 +01:00
..
file.c
inode.c
internal.h
Makefile