summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDenis Efremov <efremov@ispras.ru>2019-02-26 23:49:03 +0300
committerJames Morris <james.morris@microsoft.com>2019-03-26 16:43:23 -0700
commit5f4b97555c2e54bc5555be9d8a14ac07ddf82345 (patch)
treecd221240bffe2aa4bd6292a41d109b5884d596cf /include
parent733e4467dd068922d64e8b42530ea9b2784175dd (diff)
downloadlinux-5f4b97555c2e54bc5555be9d8a14ac07ddf82345.tar.bz2
LSM: fix documentation for the syslog hook
The syslog hook was changed in the commit "capabilities/syslog: open code cap_syslog logic to fix build failure" (12b3052c3ee8). The argument @from_file was removed from the hook. This patch updates the documentation for the syslog hook accordingly. Signed-off-by: Denis Efremov <efremov@ispras.ru> Acked-by: Kees Cook <keescook@chromium.org> Acked-by: Casey Schaufler <casey@schaufler-ca.com> Signed-off-by: James Morris <james.morris@microsoft.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/lsm_hooks.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/lsm_hooks.h b/include/linux/lsm_hooks.h
index a4b1966f5c30..37713f7da14e 100644
--- a/include/linux/lsm_hooks.h
+++ b/include/linux/lsm_hooks.h
@@ -1291,8 +1291,7 @@
* Check permission before accessing the kernel message ring or changing
* logging to the console.
* See the syslog(2) manual page for an explanation of the @type values.
- * @type contains the type of action.
- * @from_file indicates the context of action (if it came from /proc).
+ * @type contains the SYSLOG_ACTION_* constant from <include/linux/syslog.h>
* Return 0 if permission is granted.
* @settime:
* Check permission to change the system time.