[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20231011135230.750728-1-mattlloydhouse@gmail.com>
Date: Wed, 11 Oct 2023 09:52:22 -0400
From: Matthew House <mattlloydhouse@...il.com>
To: Rik van Riel <riel@...riel.com>
Cc: Alejandro Colomar <alx@...nel.org>, linux-man@...r.kernel.org,
LKML <linux-kernel@...r.kernel.org>, kernel-team@...a.com,
Eric Biederman <ebiederm@...ssion.com>
Subject: Re: [PATCH] execve.2: execve also returns E2BIG if a string is too long
On Tue, Oct 10, 2023 at 11:51 PM Rik van Riel <riel@...riel.com> wrote:
> Document that if a command line or environment string is too long (> MAX_ARG_STRLEN), execve will also return E2BIG.
>
> Signed-off-by: Rik van Riel <riel@...riel.com>
It might be worth mentioning that strlen(pathname) must also be strictly
less than MAX_ARG_STRLEN, it being subject to the same restrictions as
each of the argv/envp strings.
Thank you,
Matthew House
Powered by blists - more mailing lists