diff options
author | Kees Cook <keescook@chromium.org> | 2024-04-25 23:08:50 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2024-04-26 06:55:59 +0300 |
commit | e13106952faad91c6e492bf23b7cbdf1b1c269ce (patch) | |
tree | 8d16261343e213ee7e0a9c2acdc0d3978b31863d /mm/kmemleak.c | |
parent | 2c321f3f70bc284510598f712b702ce8d60c4d14 (diff) | |
download | linux-e13106952faad91c6e492bf23b7cbdf1b1c269ce.tar.xz |
alloc_tag: Tighten file permissions on /proc/allocinfo
The /proc/allocinfo file exposes a tremendous about of information about
kernel build details, memory allocations (obviously), and potentially even
image layout (due to ordering). As this is intended to be consumed by
system owners (like /proc/slabinfo), use the same file permissions as
there: 0400.
Link: https://lkml.kernel.org/r/20240425200844.work.184-kees@kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Cc: Kent Overstreet <kent.overstreet@linux.dev>
Cc: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/kmemleak.c')
0 files changed, 0 insertions, 0 deletions