Thread (11 messages) 11 messages, 3 authors, 2019-12-30

Re: [PATCH v3 2/3] seccomp: Check that seccomp_notif is zeroed out by the user

flat view

From: Kees Cook <hidden>
Date: 2019-12-30 18:30:00
Also in: lkml

On Sat, Dec 28, 2019 at 10:24:50PM -0800, Sargun Dhillon wrote:
This patch is a small change in enforcement of the uapi for
SECCOMP_IOCTL_NOTIF_RECV ioctl. Specifically, the datastructure which
is passed (seccomp_notif) must be zeroed out. Previously any of its
members could be set to nonsense values, and we would ignore it.

This ensures all fields are set to their zero value.

Signed-off-by: Sargun Dhillon <redacted>
Cc: Kees Cook <redacted>
Reviewed-by: Christian Brauner <redacted>
Reviewed-by: Aleksa Sarai <redacted>
Acked-by: Tycho Andersen <redacted>
Applied!

-- 
Kees Cook
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help