summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2024-11-20 14:36:28 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2024-11-20 14:36:28 -0800
commitdf66aeadd8f8445a1a73c39f5ec62c61c89f7e9a (patch)
tree14c9e44f123732d833610b73d0efc274c0b75472 /include
parent18a411cc5d5ce57d483718b1341a3ca69079bee2 (diff)
parent8cf8dfceebdaf282da8a836b2bb578808a12698c (diff)
downloadlwn-df66aeadd8f8445a1a73c39f5ec62c61c89f7e9a.tar.gz
lwn-df66aeadd8f8445a1a73c39f5ec62c61c89f7e9a.zip
Merge tag 'seccomp-v6.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux
Pull seccomp update from Kees Cook: - Provide stub for !HAVE_ARCH_SECCOMP_FILTER (Linus Walleij) This will make it easier to port arm32 to the generic entry code. * tag 'seccomp-v6.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux: seccomp: Stub for !HAVE_ARCH_SECCOMP_FILTER
Diffstat (limited to 'include')
-rw-r--r--include/linux/seccomp.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/seccomp.h b/include/linux/seccomp.h
index 709ad84809e1..341980599c71 100644
--- a/include/linux/seccomp.h
+++ b/include/linux/seccomp.h
@@ -32,6 +32,11 @@ static inline int secure_computing(void)
}
#else
extern void secure_computing_strict(int this_syscall);
+static inline int __secure_computing(const struct seccomp_data *sd)
+{
+ secure_computing_strict(sd->nr);
+ return 0;
+}
#endif
extern long prctl_get_seccomp(void);