summaryrefslogtreecommitdiffstats
path: root/Documentation/sysctl
diff options
context:
space:
mode:
authorTobin C. Harding <me@tobin.cc>2017-12-20 08:17:16 +1100
committerJonathan Corbet <corbet@lwn.net>2017-12-21 13:39:27 -0700
commitda271403a894f1139b3a49fca8fa19585902890e (patch)
treef8cb14c69db67ebf16d6807bd36bd88008b793ba /Documentation/sysctl
parentb3ed23213eab1e08be594ad44b4237588c58af09 (diff)
downloadlinux-da271403a894f1139b3a49fca8fa19585902890e.tar.gz
linux-da271403a894f1139b3a49fca8fa19585902890e.tar.bz2
linux-da271403a894f1139b3a49fca8fa19585902890e.zip
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: Tobin C. Harding <me@tobin.cc> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/sysctl')
-rw-r--r--Documentation/sysctl/kernel.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/sysctl/kernel.txt b/Documentation/sysctl/kernel.txt
index 63663039acb7..412314eebda6 100644
--- a/Documentation/sysctl/kernel.txt
+++ b/Documentation/sysctl/kernel.txt
@@ -391,7 +391,8 @@ kptr_restrict:
This toggle indicates whether restrictions are placed on
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
format specifier will be replaced with 0's unless the user has CAP_SYSLOG