Skip to content

Commit 65f8d39

Browse files
committed
Update PTRACE_* constants
* ptrace.h (PTRACE_SECCOMP_GET_FILTER): Define. * xlat/ptrace_cmds.in: Add PTRACE_SECCOMP_GET_FILTER.
1 parent e714b87 commit 65f8d39

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ptrace.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Copyright (c) 2004 Roland McGrath <[email protected]>
66
* Copyright (c) 2010 Wang Chao <[email protected]>
77
* Copyright (c) 2011-2013 Denys Vlasenko <[email protected]>
8-
* Copyright (c) 2011-2015 Dmitry V. Levin <[email protected]>
8+
* Copyright (c) 2011-2016 Dmitry V. Levin <[email protected]>
99
* Copyright (c) 2013 Ali Polatel <[email protected]>
1010
* Copyright (c) 2015 Mike Frysinger <[email protected]>
1111
* All rights reserved.
@@ -162,6 +162,9 @@ extern long ptrace(int, int, char *, long);
162162
#ifndef PTRACE_SETSIGMASK
163163
# define PTRACE_SETSIGMASK 0x420b
164164
#endif
165+
#ifndef PTRACE_SECCOMP_GET_FILTER
166+
# define PTRACE_SECCOMP_GET_FILTER 0x420c
167+
#endif
165168

166169
#if !HAVE_DECL_PTRACE_PEEKUSER
167170
# define PTRACE_PEEKUSER PTRACE_PEEKUSR

xlat/ptrace_cmds.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ PTRACE_LISTEN
3232
PTRACE_PEEKSIGINFO
3333
PTRACE_GETSIGMASK
3434
PTRACE_SETSIGMASK
35+
PTRACE_SECCOMP_GET_FILTER
3536
/* arch-specific */
3637
PTRACE_GET_THREAD_AREA
3738
PTRACE_SET_THREAD_AREA

0 commit comments

Comments
 (0)