]> Git Repo - linux.git/commit - include/linux/syslog.h
check_syslog_permissions() cleanup
authorVasily Averin <[email protected]>
Thu, 25 Jun 2015 22:01:47 +0000 (15:01 -0700)
committerLinus Torvalds <[email protected]>
Fri, 26 Jun 2015 00:00:39 +0000 (17:00 -0700)
commit3ea4331c60be3eee4c97e5ddabad95399f879b76
tree6977f3c7a8a72003f3b324de5ce4bb490274ff53
parentd194e5d666225b04c7754471df0948f645b6ab3a
check_syslog_permissions() cleanup

Patch fixes drawbacks in heck_syslog_permissions() noticed by AKPM:
"from_file handling makes me cry.

That's not a boolean - it's an enumerated value with two values
currently defined.

But the code in check_syslog_permissions() treats it as a boolean and
also hardwires the knowledge that SYSLOG_FROM_PROC == 1 (or == `true`).

And the name is wrong: it should be called from_proc to match
SYSLOG_FROM_PROC."

Signed-off-by: Vasily Averin <[email protected]>
Cc: Kees Cook <[email protected]>
Cc: Josh Boyer <[email protected]>
Cc: Eric Paris <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/syslog.h
kernel/printk/printk.c
This page took 0.070808 seconds and 4 git commands to generate.