BACKPORT: asm-generic: add generic seccomp.h for secure computing mode 1

Those values (__NR_seccomp_*) are used solely in secure_computing()
to identify mode 1 system calls. If compat system calls have different
syscall numbers, asm/seccomp.h may override them.

Acked-by: Arnd Bergmann <>
Reviewed-by: Kees Cook <>
Signed-off-by: AKASHI Takahiro <>
Signed-off-by: Will Deacon <>

Bug: 28020023
Patchset: seccomp

(cherry picked from kernel/msm commit b12d48d02407060e3fe87e2d8302159853f5d4ee)
Signed-off-by: Kees Cook <>
Change-Id: Iccf2b2ba4479075b80033c912cfd67e3910ea457
1 file changed