`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 Signed-off-by: Chen Linxuan <chenlinxuan@xxxxxxxxxxxxx> --- 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