summaryrefslogtreecommitdiff
path: root/kernel/ptrace.c
diff options
context:
space:
mode:
authorJames Morris <james.l.morris@oracle.com>2017-11-29 12:48:48 +1100
committerJames Morris <james.l.morris@oracle.com>2017-11-29 12:48:48 +1100
commit26025bf58b9fe3806ce4f92600e96a2c214c0d9c (patch)
treee5b9fbb6661848e22324fc70678bbd432bae2688 /kernel/ptrace.c
parentcf40a76e7d5874bb25f4404eecc58a2e033af885 (diff)
parent26500475ac1b499d8636ff281311d633909f5d20 (diff)
Merge tag 'seccomp-next' of https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux into next-seccomp
add support for retrieving seccomp filter metadata (Tycho Andersen)
Diffstat (limited to 'kernel/ptrace.c')
-rw-r--r--kernel/ptrace.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/ptrace.c b/kernel/ptrace.c
index 84b1367935e4..58291e9f3276 100644
--- a/kernel/ptrace.c
+++ b/kernel/ptrace.c
@@ -1092,6 +1092,10 @@ int ptrace_request(struct task_struct *child, long request,
ret = seccomp_get_filter(child, addr, datavp);
break;
+ case PTRACE_SECCOMP_GET_METADATA:
+ ret = seccomp_get_metadata(child, addr, datavp);
+ break;
+
default:
break;
}