summaryrefslogtreecommitdiff
path: root/arch/sparc/include/asm/seccomp.h
blob: 1ea70080f5cd20fc4351d07947b3092b1861254c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_SECCOMP_H
#define _ASM_SECCOMP_H

#include <linux/unistd.h>

#define __NR_seccomp_sigreturn_32 __NR_sigreturn

#ifdef CONFIG_SPARC64
# define SECCOMP_ARCH_NATIVE		AUDIT_ARCH_SPARC64
# define SECCOMP_ARCH_NATIVE_NR		NR_syscalls
# define SECCOMP_ARCH_NATIVE_NAME	"sparc64"
# ifdef CONFIG_COMPAT
#  define SECCOMP_ARCH_COMPAT		AUDIT_ARCH_SPARC
#  define SECCOMP_ARCH_COMPAT_NR	NR_syscalls
#  define SECCOMP_ARCH_COMPAT_NAME	"sparc"
# endif
#else
# define SECCOMP_ARCH_NATIVE		AUDIT_ARCH_SPARC
# define SECCOMP_ARCH_NATIVE_NR		NR_syscalls
# define SECCOMP_ARCH_NATIVE_NAME	"sparc"
#endif

#include <asm-generic/seccomp.h>

#endif /* _ASM_SECCOMP_H */