]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
timer/debug: Change /proc/timer_stats from 0644 to 0600
authorBen Hutchings <ben@decadent.org.uk>
Mon, 11 Feb 2019 19:07:32 +0000 (19:07 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 11 May 2019 14:22:49 +0000 (15:22 +0100)
commit07efa228ff7bfadaf50f0daa63a228d055f232ce
tree64fa51b4139d09485588a79c053bd9ebb1655a70
parent971081984266d7934b2f0253215e3f31f9337915
timer/debug: Change /proc/timer_stats from 0644 to 0600

The timer_stats facility should filter and translate PIDs if opened
from a non-initial PID namespace, to avoid leaking information about
the wider system.  It should also not show kernel virtual addresses.
Unfortunately it has now been removed upstream (as redundant)
instead of being fixed.

For stable, fix the leak by restricting access to root only.  A
similar change was already made for the /proc/timer_list file.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
kernel/time/timer_stats.c