]> git.baikalelectronics.ru Git - kernel.git/commit
proc: show si_ptr in /proc/<pid>/timers without hashing
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 7 Dec 2017 02:23:27 +0000 (18:23 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 7 Dec 2017 02:23:27 +0000 (18:23 -0800)
commitdb2220b7fffd501a07da48a2926163754b227479
treee3f6ad1b904067807b70aef82f08d2b09ca9cfd6
parenta1050f7f1a1222c9b0d8ff1b2a165ef7a9b173e6
proc: show si_ptr in /proc/<pid>/timers without hashing

It's a user pointer, and while the permissions of the file are pretty
questionable (should it really be readable to everybody), hashing the
pointer isn't going to be the solution.

We should take a closer look at more of the /proc/<pid> file permissions
in general.  Sure, we do want many of them to often be readable (for
'ps' and friends), but I think we should probably do a few conversions
from S_IRUGO to S_IRUSR.

Reported-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/base.c