Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
seccomp, ptrace: switch get_metadata types to arch independent
Commit 2650047 ("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: "Dmitry V. Levin" <[email protected]> Signed-off-by: Tycho Andersen <[email protected]> CC: Kees Cook <[email protected]> CC: Oleg Nesterov <[email protected]> Reviewed-by: "Dmitry V. Levin" <[email protected]> Signed-off-by: Kees Cook <[email protected]>
- Loading branch information