X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=include%2Flinux%2Fkernel.h;h=65692c80aa1a3f34f982d1e2f1738a31a0f87c0b;hb=004c52006232508af80fbaa233a1b33e49a4bcee;hp=bd6d96cf80b17cae9b4e15cb1e05e2a455ffd88a;hpb=bb272221e9db79f13d454e1f3fb6b05013be985e;p=mirror_ubuntu-artful-kernel.git diff --git a/include/linux/kernel.h b/include/linux/kernel.h index bd6d96cf80b1..65692c80aa1a 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h @@ -277,6 +277,15 @@ extern int oops_may_print(void); void do_exit(long error_code) __noreturn; void complete_and_exit(struct completion *, long) __noreturn; +#ifdef CONFIG_LOCK_DOWN_KERNEL +extern bool kernel_is_locked_down(void); +#else +static inline bool kernel_is_locked_down(void) +{ + return false; +} +#endif + /* Internal, do not use. */ int __must_check _kstrtoul(const char *s, unsigned int base, unsigned long *res); int __must_check _kstrtol(const char *s, unsigned int base, long *res);