Skip to content

Commit

Permalink
seccomp: Provide stub for __secure_computing()
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Thomas Gleixner committed Jul 24, 2020
1 parent ba47d84 commit 6823eca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/linux/seccomp.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ struct seccomp_filter { };

#ifdef CONFIG_HAVE_ARCH_SECCOMP_FILTER
static inline int secure_computing(void) { return 0; }
static inline int __secure_computing(void) { return 0; }
#else
static inline void secure_computing_strict(int this_syscall) { return; }
#endif
Expand Down

0 comments on commit 6823eca

Please sign in to comment.