syslog: Provide stub check_syslog_permissions
authorSebastian Schmidt <yath@yath.de>
Fri, 14 Nov 2014 18:51:45 +0000 (10:51 -0800)
committerTony Luck <tony.luck@intel.com>
Mon, 17 Nov 2014 18:28:04 +0000 (10:28 -0800)
commit069fb0b63722f8c9f8b4bbce236793626c89af33
tree9e017189673b5dff08e6a470bb600e52cac64c8c
parent68c4a4f8abc60c9440ede9cd123d48b78325f7a3
syslog: Provide stub check_syslog_permissions

When building without CONFIG_PRINTK, we need to provide a stub
check_syslog_permissions. As there is no way to turn on the
dmesg_restrict sysctl without CONFIG_PRINTK, return success.

Reported-by: Jim Davis <jim.epost@gmail.com>
Signed-off-by: Sebastian Schmidt <yath@yath.de>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
include/linux/syslog.h