Blame view
include/asm-generic/seccomp.h
1.16 KB
d2912cb15 treewide: Replace... |
1 |
/* SPDX-License-Identifier: GPL-2.0-only */ |
65a2ae8d5 asm-generic: add ... |
2 3 4 5 6 |
/* * include/asm-generic/seccomp.h * * Copyright (C) 2014 Linaro Limited * Author: AKASHI Takahiro <takahiro.akashi@linaro.org> |
65a2ae8d5 asm-generic: add ... |
7 8 9 10 11 12 13 14 15 16 |
*/ #ifndef _ASM_GENERIC_SECCOMP_H #define _ASM_GENERIC_SECCOMP_H #include <linux/unistd.h> #if defined(CONFIG_COMPAT) && !defined(__NR_seccomp_read_32) #define __NR_seccomp_read_32 __NR_read #define __NR_seccomp_write_32 __NR_write #define __NR_seccomp_exit_32 __NR_exit |
ddaa27ee6 seccomp: allow CO... |
17 |
#ifndef __NR_seccomp_sigreturn_32 |
65a2ae8d5 asm-generic: add ... |
18 |
#define __NR_seccomp_sigreturn_32 __NR_rt_sigreturn |
ddaa27ee6 seccomp: allow CO... |
19 |
#endif |
65a2ae8d5 asm-generic: add ... |
20 21 22 23 24 25 26 27 |
#endif /* CONFIG_COMPAT && ! already defined */ #define __NR_seccomp_read __NR_read #define __NR_seccomp_write __NR_write #define __NR_seccomp_exit __NR_exit #ifndef __NR_seccomp_sigreturn #define __NR_seccomp_sigreturn __NR_rt_sigreturn #endif |
c983f0e86 seccomp: Get comp... |
28 29 30 31 32 33 34 |
#ifdef CONFIG_COMPAT #ifndef get_compat_mode1_syscalls static inline const int *get_compat_mode1_syscalls(void) { static const int mode1_syscalls_32[] = { __NR_seccomp_read_32, __NR_seccomp_write_32, __NR_seccomp_exit_32, __NR_seccomp_sigreturn_32, |
fe4bfff86 seccomp: Use -1 m... |
35 |
-1, /* negative terminated */ |
c983f0e86 seccomp: Get comp... |
36 37 38 39 40 |
}; return mode1_syscalls_32; } #endif #endif /* CONFIG_COMPAT */ |
65a2ae8d5 asm-generic: add ... |
41 |
#endif /* _ASM_GENERIC_SECCOMP_H */ |