Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f869a525 authored by Satyajit Desai's avatar Satyajit Desai Committed by Shiraz Hashim
Browse files

ion: use %pK instead of %p which respects kptr_restrict sysctl



Hide kernel pointers from unprivileged users by using %pK format-specifier
instead of %p. This respects the kptr_restrict sysctl setting which is by
default on. So by default %pK will print zeroes as address. echo 1 to
kptr_restrict to print proper kernel address.

Change-Id: Ia300e3e38b8662afac15edda28959564b05c9367
Signed-off-by: default avatarSatyajit Desai <sadesai@codeaurora.org>
parent 0f4a079d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment