diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2024-11-20 14:36:28 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2024-11-20 14:36:28 -0800 |
commit | df66aeadd8f8445a1a73c39f5ec62c61c89f7e9a (patch) | |
tree | 14c9e44f123732d833610b73d0efc274c0b75472 /include | |
parent | 18a411cc5d5ce57d483718b1341a3ca69079bee2 (diff) | |
parent | 8cf8dfceebdaf282da8a836b2bb578808a12698c (diff) | |
download | lwn-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.h | 5 |
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); |