Commit da271403 authored by Tobin C. Harding's avatar Tobin C. Harding Committed by Jonathan Corbet

doc: update kptr_restrict documentation

Recently the behaviour of printk specifier %pK was changed. The
documentation does not currently mirror this.

Update documentation for sysctl kptr_restrict.
Signed-off-by: default avatarTobin C. Harding <me@tobin.cc>
Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent b3ed2321
...@@ -391,7 +391,8 @@ kptr_restrict: ...@@ -391,7 +391,8 @@ kptr_restrict:
This toggle indicates whether restrictions are placed on This toggle indicates whether restrictions are placed on
exposing kernel addresses via /proc and other interfaces. exposing kernel addresses via /proc and other interfaces.
When kptr_restrict is set to (0), the default, there are no restrictions. When kptr_restrict is set to 0 (the default) the address is hashed before
printing. (This is the equivalent to %p.)
When kptr_restrict is set to (1), kernel pointers printed using the %pK When kptr_restrict is set to (1), kernel pointers printed using the %pK
format specifier will be replaced with 0's unless the user has CAP_SYSLOG format specifier will be replaced with 0's unless the user has CAP_SYSLOG
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment