diff options
author | Sargun Dhillon <sargun@sargun.me> | 2019-12-28 22:24:49 -0800 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2020-01-02 13:03:42 -0800 |
commit | 88c13f8bd71472fbab5338b01d99122908c77e53 (patch) | |
tree | 05744afd8a844eb7d3c135832cf19e3a988d8722 /scripts/extract-cert.c | |
parent | 771b894f2f3dfedc2ba5561731fffa0e39b1bbb6 (diff) |
selftests/seccomp: Zero out seccomp_notif
The seccomp_notif structure should be zeroed out prior to calling the
SECCOMP_IOCTL_NOTIF_RECV ioctl. Previously, the kernel did not check
whether these structures were zeroed out or not, so these worked.
This patch zeroes out the seccomp_notif data structure prior to calling
the ioctl.
Signed-off-by: Sargun Dhillon <sargun@sargun.me>
Reviewed-by: Tycho Andersen <tycho@tycho.ws>
Reviewed-by: Christian Brauner <christian.brauner@ubuntu.com>
Link: https://lore.kernel.org/r/20191229062451.9467-1-sargun@sargun.me
Fixes: 6a21cc50f0c7 ("seccomp: add a return code to trap to userspace")
Cc: stable@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'scripts/extract-cert.c')
0 files changed, 0 insertions, 0 deletions