New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--userns=keep-id
causes chown [...]: invalid argument
.
#7106
Comments
it works well here. What is the output for |
|
Can you try a |
Same result. |
yes that is definitely the issue. It looks like the user namespace is created with a single mapping. Can you try this command:
Do you get any error? |
It can open |
it is missing the file capabilities. newuidmap should have cap_setuid and newgidmap instead cap_setgid. Alternatively, you can set the setuid bit (chmod +s newuidmap newgidmap) |
sudo dnf -y reinstall shadow-utils Should fix the permissions on newuidmap and newgidmap. |
Sorry for not replying earlier. Setting +s or cap_setuid (resp. cap_setgid) fixes the issue. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Running with
--userns=keep-id
causeschown [...]: invalid argument
.Steps to reproduce the issue:
podman run -ti --log-level=debug --userns=keep-id docker.io/freedesktopsdk/sdk:20.08-beta /bin/bash
Describe the results you received:
Describe the results you expected:
It works.
Additional information you deem important (e.g. issue happens only occasionally):
/etc/subuid
:Same in
/etc/subgid
.strace gives this interesting line:
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):See https://gitlab.gnome.org/GNOME/gnome-build-meta/-/blob/a0c728f2c37db5d93361fcfae77b08aa9804d6c1/elements/vm/podman/podman.bst
Additional environment details (AWS, VirtualBox, physical, etc.):
Physical on GNOME OS.
The text was updated successfully, but these errors were encountered: