xref: /kernel/linux/linux-6.6/arch/sh/include/asm/seccomp.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-6.6/arch/sh/include/asm/
162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci#ifndef __ASM_SECCOMP_H
362306a36Sopenharmony_ci
462306a36Sopenharmony_ci#include <linux/unistd.h>
562306a36Sopenharmony_ci
662306a36Sopenharmony_ci#define __NR_seccomp_read __NR_read
762306a36Sopenharmony_ci#define __NR_seccomp_write __NR_write
862306a36Sopenharmony_ci#define __NR_seccomp_exit __NR_exit
962306a36Sopenharmony_ci#define __NR_seccomp_sigreturn __NR_rt_sigreturn
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ci#ifdef CONFIG_CPU_LITTLE_ENDIAN
1262306a36Sopenharmony_ci#define __SECCOMP_ARCH_LE		__AUDIT_ARCH_LE
1362306a36Sopenharmony_ci#else
1462306a36Sopenharmony_ci#define __SECCOMP_ARCH_LE		0
1562306a36Sopenharmony_ci#endif
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ci#define SECCOMP_ARCH_NATIVE		(AUDIT_ARCH_SH | __SECCOMP_ARCH_LE)
1862306a36Sopenharmony_ci#define SECCOMP_ARCH_NATIVE_NR		NR_syscalls
1962306a36Sopenharmony_ci#define SECCOMP_ARCH_NATIVE_NAME	"sh"
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ci#endif /* __ASM_SECCOMP_H */
22

Indexes created Thu Nov 07 10:32:03 CST 2024