]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: idmap: fix sock write to child
authorPedro Tammela <pctammela@mojatatu.com>
Wed, 1 Mar 2023 16:09:47 +0000 (17:09 +0100)
committerGitHub <noreply@github.com>
Wed, 1 Mar 2023 16:09:47 +0000 (17:09 +0100)
commit567700dfdbcd0a237e274380673a0cb83e78ce06
treee3332af6fd7c090a4fe5c0ba35dcc353b180137e
parent5603aee05b2d603ec59bfde47d07c076d43df00c
libmount: idmap: fix sock write to child

The current code writes to sock_fds[0], which is set to -1 on line 227, instead of the correct sock_fds[1].
As a cause, a simple `mount` command which uses idmapping and doesn't specify a user ns hangs indefinitely.
libmount/src/hook_idmap.c