User from "generateCurrentUserPasswdEntry" created with duplicate UID #7503
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Since 2.0.5 podman creates a user account when
--userns=keep-id
is set, with the UID of the user on the host system. The algorithm doesn't check if there's already a user with the same UID inside the container. As a result in the end there might be two user accounts with the same UID.Steps to reproduce the issue:
Describe the results you received:
The
/etc/passwd
in the containers now has two users with UID 1000.Describe the results you expected:
Not sure how this should be handled, I guess either:
Additional information you deem important (e.g. issue happens only occasionally):
I've noticed this behaviour when investigating #7499.
I'm not sure if the duplicate UIDs are a problem, and how severe. Maybe it's actually ok and this ticket can be closed. Just wanted to bring it to your attention.
This functionality was added in 3dfd863 cc @rhatdan @vrothberg
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
physical
The text was updated successfully, but these errors were encountered: