Re: [PATCH] man/man2/mkdir.2: Add EOVERFLOW

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

 



Hi Chen,

On Wed, Jan 22, 2025 at 05:24:17PM +0800, Chen Linxuan wrote:
> `mkdir` and `mkdirat` might set errno to EOVERFLOW when UID or GID
> mapping has not been configured. See
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=036d523641c66bef713042894a17f4335f199e49

Would you mind adding a small program in the commit message that shows
this behavior?

> Signed-off-by: Chen Linxuan <chenlinxuan@xxxxxxxxxxxxx>

Thanks for the patch!  It LGTM.


Have a lovely day!
Alex

> ---
>  man/man2/mkdir.2 | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/man/man2/mkdir.2 b/man/man2/mkdir.2
> index d84dbc27e..2af618d68 100644
> --- a/man/man2/mkdir.2
> +++ b/man/man2/mkdir.2
> @@ -203,6 +203,10 @@ does not support the creation of directories.
>  .B EROFS
>  .I pathname
>  refers to a file on a read-only filesystem.
> +.B EOVERFLOW
> +UID or GID mappings (see
> +.BR user_namespaces (7))
> +has not been configured.
>  .SH VERSIONS
>  Under Linux, apart from the permission bits, the
>  .B S_ISVTX
> -- 
> 2.43.0
> 

-- 
<https://www.alejandro-colomar.es/>

Attachment: signature.asc
Description: PGP signature


[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