Skip to content

Commit 3135f5b

Browse files
committed
entry: Correct __secure_computing() stub
The original version of that used secure_computing() which has no arguments. Review requested to switch to __secure_computing() which has one. The function name was correct, but no argument added and of course compiling without SECCOMP was deemed overrated. Add the missing function argument. Fixes: 6823eca ("seccomp: Provide stub for __secure_computing()") Reported-by: Ingo Molnar <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
1 parent aadfc2f commit 3135f5b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/linux/seccomp.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,11 @@ static inline int seccomp_mode(struct seccomp *s)
5858

5959
struct seccomp { };
6060
struct seccomp_filter { };
61+
struct seccomp_data;
6162

6263
#ifdef CONFIG_HAVE_ARCH_SECCOMP_FILTER
6364
static inline int secure_computing(void) { return 0; }
64-
static inline int __secure_computing(void) { return 0; }
65+
static inline int __secure_computing(const struct seccomp_data *sd) { return 0; }
6566
#else
6667
static inline void secure_computing_strict(int this_syscall) { return; }
6768
#endif

0 commit comments

Comments
 (0)