Re: unshare regression in 2.42-rc1
Chris Hofstaedtler <[email protected]> Thu, 26 Mar 2026 15:01:16 +0100
| Newsgroups | org.kernel.vger.util-linux,org.kernel.vger.linux-fsdevel,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
Hi Christian, * Christian Albrecht Goeschel Ndjomouo <[email protected]> [260322 13:57]: >Thank you for pointing out this regression. > >The problem is that if ul_getuserpw_str() cannot find any user with the provided >UID or username, the unshare internal helper function get_user() will error out >and stop argument parsing, even if a valid numeric value was provided. Previously, >the code would fallback to simply converting the string to an unsigned int and use >it for the uid_t, so I added that behavior back. > >I found this issue to be true for the --map-group option as well, so I went ahead and fixed >both cases in this latest patch: https://github.com/util-linux/util-linux/pull/4134/changes/c74df906b67b2f9930662ca4e1ba04c21569d529 > >Please let us know if this fixed the problem on your end. With the patch applied, the debvm tests succeed once again. So this seems good. I see Karel has in the meantime merged a different approach. I'll recheck with 2.42-rc2. Thank you, Chris