CHROMIUM: Fix bad forward port of seccomp PTRACE_O_MASK
authorWill Drewry <wad@chromium.org>
Wed, 6 Jun 2012 16:56:01 +0000 (11:56 -0500)
committerGerrit <chrome-bot@google.com>
Wed, 6 Jun 2012 23:11:04 +0000 (16:11 -0700)
Make the mask 0xff and not 0x7f.  Without the change, it
is impossible to use PTRACE_O_TRACESECCOMP.

We should drop this and the original ported change and take
upstreams when we roll to 3.5+.

Signed-off-by: Will Drewry <wad@chromium.org>
TEST=seccomp_tests
BUG=none?

Change-Id: I4c7eb15d3b026203878e4f84ba23cbea28899c36
Reviewed-on: https://gerrit.chromium.org/gerrit/24649
Reviewed-by: Olof Johansson <olofj@chromium.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Jorge Lucangeli Obes <jorgelo@chromium.org>
Tested-by: Will Drewry <wad@chromium.org>
Commit-Ready: Will Drewry <wad@chromium.org>

include/linux/ptrace.h

index 26bf736..1194ad9 100644 (file)
@@ -76,7 +76,7 @@
 #define PTRACE_O_TRACEEXIT     (1 << PTRACE_EVENT_EXIT)
 #define PTRACE_O_TRACESECCOMP  (1 << PTRACE_EVENT_SECCOMP)
 
-#define PTRACE_O_MASK          0x0000007f
+#define PTRACE_O_MASK          0x000000ff
 
 #include <asm/ptrace.h>