From: Dmitry V. Levin Date: Thu, 12 May 2016 16:58:38 +0000 (+0000) Subject: ptrace: decode data argument of PTRACE_SECCOMP_GET_FILTER request X-Git-Tag: v4.12~171 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d9fb4a434d634b3076438dfedfa09bc19878354e;p=strace ptrace: decode data argument of PTRACE_SECCOMP_GET_FILTER request * process.c (SYS_FUNC(ptrace)): Print data argument of PTRACE_SECCOMP_GET_FILTER request on exiting using print_seccomp_fprog. --- diff --git a/process.c b/process.c index 39eb21f9..19b616d0 100644 --- a/process.c +++ b/process.c @@ -212,6 +212,7 @@ SYS_FUNC(ptrace) case PTRACE_GETREGSET: case PTRACE_GETSIGINFO: case PTRACE_GETSIGMASK: + case PTRACE_SECCOMP_GET_FILTER: if (verbose(tcp)) { /* print data on exiting syscall */ return 0; @@ -244,6 +245,12 @@ SYS_FUNC(ptrace) case PTRACE_GETSIGMASK: print_sigset_addr_len(tcp, data, addr); break; + case PTRACE_SECCOMP_GET_FILTER: + if (syserror(tcp)) + printaddr(data); + else + print_seccomp_fprog(tcp, data, tcp->u_rval); + break; } } return 0;