OSDN Git Service

Fix problem that we don't block syscalls below min value
authorPaul Lawrence <paullawrence@google.com>
Wed, 22 Mar 2017 15:03:51 +0000 (08:03 -0700)
committerPaul Lawrence <paullawrence@google.com>
Wed, 22 Mar 2017 16:48:17 +0000 (09:48 -0700)
commit65b47c9fe08e183987a9857e3e3b5d66a63d6936
tree8ed7de86ab77f320aa2ead741e56a4c02b405e53
parent8ebfc0d3a3285a595cd44d477ebe76fdaa39afcf
Fix problem that we don't block syscalls below min value

The check that we are not below the lowest permitted syscall was
off by one, so we always allowed them, rather than always denying
them

Test: Check arm64 boots, chrome and maps work
      mips and mips64 emulators boot
      Note that arm, x86 and x86_64 already allow syscall 0 so there
      will be no functional change there

Change-Id: I85873f1d04124e634e648bd47c027f280f1d6dbd
libc/seccomp/arm64_policy.cpp
libc/seccomp/arm_policy.cpp
libc/seccomp/mips64_policy.cpp
libc/seccomp/mips_policy.cpp
libc/seccomp/x86_64_policy.cpp
libc/seccomp/x86_policy.cpp
libc/tools/genseccomp.py
libc/tools/test_genseccomp.py