-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
podman run --rm -it --userns=keep-id --privileged=true --arch arm64 fedora sudo fails while it works without --arch #18425
Comments
The problem can be further reduced by using: |
Does it work without the |
Yes, it does. |
Sounds like an expected limitation when qemu-user-static is registered with binfmt_misc with the F flag, but not the C flag, per the kernel doc. I guess we'll have to remember that one. |
@nalind thanks for looking into this. Does that mean this works as designed? |
This specific case is a configuration setting, and my assumption is that the packaging-level decision to not also set the "C" flag when registering the interpreter was made with care, but on your own system, you're able to override that by editing the files under |
A friendly reminder that this issue had no activity for 30 days. |
Closing as this doesn't seems to be a podman issue. |
Issue Description
Description:
When podman starts a privileged container with keeping the userns sudo works perfect until the option --arch is used.
I tried arm64 and s390x where sudo errors out with
Error while loading /usr/bin/sudo: Permission denied
I could not isolate the error further sofar, ideas welcome. It is an hard error so I can try things...
Steps to reproduce the issue
Steps to reproduce the issue
podman run --rm -it --userns=keep-id --privileged=true --arch arm64 fedora sudo
which fails for me withError while loading /usr/bin/sudo: Permission denied
podman run --rm -it --userns=keep-id --privileged=true fedora sudo
which works as expectedDescribe the results you received
Sudo fails with some permission error, since the image content is exactly the same the problem most likely is in the runtime.
Describe the results you expected
Describe the results you expected
podman info output
podman-4.5.0-1.fc37.x86_64
The text was updated successfully, but these errors were encountered: