mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 22:54:01 +00:00
seccomp: Provide stub for __secure_computing()
To avoid #ifdeffery in the upcoming generic syscall entry work code provide a stub for __secure_computing() as this is preferred over secure_computing() because the TIF flag is already evaluated. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Kees Cook <keescook@chromium.org> Link: https://lkml.kernel.org/r/20200722220519.404974280@linutronix.de
This commit is contained in:
parent
ba47d845d7
commit
6823ecabf0
1 changed files with 1 additions and 0 deletions
|
@ -61,6 +61,7 @@ struct seccomp_filter { };
|
||||||
|
|
||||||
#ifdef CONFIG_HAVE_ARCH_SECCOMP_FILTER
|
#ifdef CONFIG_HAVE_ARCH_SECCOMP_FILTER
|
||||||
static inline int secure_computing(void) { return 0; }
|
static inline int secure_computing(void) { return 0; }
|
||||||
|
static inline int __secure_computing(void) { return 0; }
|
||||||
#else
|
#else
|
||||||
static inline void secure_computing_strict(int this_syscall) { return; }
|
static inline void secure_computing_strict(int this_syscall) { return; }
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue