Skip to content

Commit 6823eca

Browse files
committed
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 <[email protected]> Acked-by: Kees Cook <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent ba47d84 commit 6823eca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/linux/seccomp.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ struct seccomp_filter { };
6161

6262
#ifdef CONFIG_HAVE_ARCH_SECCOMP_FILTER
6363
static inline int secure_computing(void) { return 0; }
64+
static inline int __secure_computing(void) { return 0; }
6465
#else
6566
static inline void secure_computing_strict(int this_syscall) { return; }
6667
#endif

0 commit comments

Comments
 (0)