powerpc: Enable seccomp architecture tracking
authorYiFei Zhu <yifeifz2@illinois.edu>
Wed, 11 Nov 2020 13:33:49 +0000 (07:33 -0600)
committerKees Cook <keescook@chromium.org>
Fri, 20 Nov 2020 19:16:35 +0000 (11:16 -0800)
commite7bcb4622ddf4473da6c03fa8423919a568c57dc
tree316f19239a7f4fe3317e47b57feda56695bfebd2
parent6aa7923c8737d1f8fd2a06154155d68dec646464
powerpc: Enable seccomp architecture tracking

To enable seccomp constant action bitmaps, we need to have a static
mapping to the audit architecture and system call table size. Add these
for powerpc.

__LITTLE_ENDIAN__ is used here instead of CONFIG_CPU_LITTLE_ENDIAN
to keep it consistent with asm/syscall.h.

Signed-off-by: YiFei Zhu <yifeifz2@illinois.edu>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/0b64925362671cdaa26d01bfe50b3ba5e164adfd.1605101222.git.yifeifz2@illinois.edu
arch/powerpc/include/asm/seccomp.h