proc: hide kernel addresses via %pK in /proc/<pid>/stack
authorKonstantin Khlebnikov <khlebnikov@openvz.org>
Wed, 23 Mar 2011 23:42:48 +0000 (16:42 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Mar 2011 02:46:36 +0000 (19:46 -0700)
commit51e031496d50f87ff519a63cfd4fc2f415f03336
tree75c177b8aeba82fffb80960eed1c77bb4188c362
parent523fb486bfd94e3a3b16a42bcb21b1959cf14df8
proc: hide kernel addresses via %pK in /proc/<pid>/stack

This file is readable for the task owner.  Hide kernel addresses from
unprivileged users, leave them function names and offsets.

Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
Acked-by: Kees Cook <kees.cook@canonical.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/base.c