Skip to content
Commit 2a040f9f authored by Tycho Andersen's avatar Tycho Andersen Committed by Kees Cook
Browse files

seccomp, ptrace: switch get_metadata types to arch independent



Commit 26500475 ("ptrace, seccomp: add support for retrieving seccomp
metadata") introduced `struct seccomp_metadata`, which contained unsigned
longs that should be arch independent. The type of the flags member was
chosen to match the corresponding argument to seccomp(), and so we need
something at least as big as unsigned long. My understanding is that __u64
should fit the bill, so let's switch both types to that.

While this is userspace facing, it was only introduced in 4.16-rc2, and so
should be safe assuming it goes in before then.

Reported-by: default avatar"Dmitry V. Levin" <ldv@altlinux.org>
Signed-off-by: default avatarTycho Andersen <tycho@tycho.ws>
CC: Kees Cook <keescook@chromium.org>
CC: Oleg Nesterov <oleg@redhat.com>
Reviewed-by: default avatar"Dmitry V. Levin" <ldv@altlinux.org>
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
parent 26500475
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment