Re: [PATCH] execve.2: document an effect of BINPRM_BUF_SIZE increase to 256

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri 22-03-19 01:15:46, Eugene Syromiatnikov wrote:
> Increase of BINPRM_BUF_SIZE to 256 increases the limit on the possible
> interpreter line length for scripts to 255.
> 
> The relevant kernel commit
> is 6eb3c3d0a52dca33 ("exec: increase BINPRM_BUF_SIZE to 256").

It is sad that something as internal as BINPRM_BUF_SIZE is exported to
the userspace. But aside, why do we have to reflect that change in the
man page? Sure the value has changed but as long as we really want to
mention this at all then why not refer to BINPRM_BUF_SIZE rather than
keep updating man page anytime this changes?

> Signed-off-by: Eugene Syromiatnikov <esyr@xxxxxxxxxx>
> ---
>  man2/execve.2 | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/man2/execve.2 b/man2/execve.2
> index 468c7c1..e9f956e 100644
> --- a/man2/execve.2
> +++ b/man2/execve.2
> @@ -633,8 +633,10 @@ prototype:
>  .in
>  .\"
>  .SS Interpreter scripts
> -A maximum line length of 127 characters is allowed for the first line in
> -an interpreter script.
> +Before Linux 5.1, a maximum line length of 127 characters was allowed
> +for the first line in an interpreter script.
> +.\" commit 6eb3c3d0a52dca337e327ae8868ca1f44a712e02
> +In Linux 5.1 onwards, this limit was increased up to 255 characters.
>  .PP
>  The semantics of the
>  .I optional-arg
> -- 
> 2.1.4
> 

-- 
Michal Hocko
SUSE Labs



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux