Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 069fb0b6 authored by Sebastian Schmidt's avatar Sebastian Schmidt Committed by Tony Luck
Browse files

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: default avatarJim Davis <jim.epost@gmail.com>
Signed-off-by: default avatarSebastian Schmidt <yath@yath.de>
Acked-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent 68c4a4f8
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -48,6 +48,14 @@
#define SYSLOG_FROM_PROC             1

int do_syslog(int type, char __user *buf, int count, bool from_file);

#ifdef CONFIG_PRINTK
int check_syslog_permissions(int type, bool from_file);
#else
static inline int check_syslog_permissions(int type, bool from_file)
{
	return 0;
}
#endif

#endif /* _LINUX_SYSLOG_H */