Re: [PATCH] seccomp: cap SECCOMP_RET_ERRNO data to MAX_ERRNO

From: Dmitry V. Levin
Date: Fri Feb 06 2015 - 17:32:15 EST


On Fri, Feb 06, 2015 at 01:03:09PM -0800, Kees Cook wrote:
> The value resulting from the SECCOMP_RET_DATA mask could exceed MAX_ERRNO
> when setting errno during a SECCOMP_RET_ERRNO filter action. This makes sure
> we have a reliable value being set, so that an invalid errno will not be
> ignored by userspace.

Acked-by: Dmitry V. Levin <ldv@xxxxxxxxxxxx>


--
ldv
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/