-
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
Container created with --pid host returns operation not permitted on copy in F34 #9985
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.
Comments
openshift-ci-robot
added
the
kind/bug
Categorizes issue or PR as related to a bug.
label
Apr 9, 2021
@vrothberg PTAL |
This was referenced Apr 9, 2021
JayDoubleu
changed the title
Container created with --pid host returns operation not permitted on F34
Container created with --pid host returns operation not permitted on copy in F34
Apr 9, 2021
A friendly reminder that this issue had no activity for 30 days. |
@nalind @vrothberg does the copier rely on the pid namespace? |
I found it. |
rhatdan
added a commit
to rhatdan/podman
that referenced
this issue
May 19, 2021
When attempting to copy files into and out of running containers within the host pidnamespace, the code was attempting to join the host pidns again, and getting an error. This was causing the podman cp command to fail. Since we are already in the host pid namespace, we should not be attempting to join. This PR adds a check to see if the container is in NOT host pid namespace, and only then attempts to join. Fixes: containers#9985 Signed-off-by: Daniel J Walsh <[email protected]>
@rhatdan what are the odds of this patch landing in F34 any time soon? |
It should be in podman 3.2 RC3 which is scheduled to be released next week. Correct @mheon |
Probably Tuesday for the last RC, Thursday for the final
…On Fri, May 21, 2021 at 15:47 Daniel J Walsh ***@***.***> wrote:
It should be in podman 3.2 RC3 which is scheduled to be released next
week. Correct @mheon <https://github.com/mheon>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#9985 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB3AOCCJPJM4A6TPRPO2A4TTO22DTANCNFSM42VGWZ4A>
.
|
mheon
pushed a commit
to mheon/libpod
that referenced
this issue
May 25, 2021
When attempting to copy files into and out of running containers within the host pidnamespace, the code was attempting to join the host pidns again, and getting an error. This was causing the podman cp command to fail. Since we are already in the host pid namespace, we should not be attempting to join. This PR adds a check to see if the container is in NOT host pid namespace, and only then attempts to join. Fixes: containers#9985 Signed-off-by: Daniel J Walsh <[email protected]>
github-actions
bot
added
the
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
label
Sep 21, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
Container created with --pid host returns
operation not permitted
error when trying to copy file into container.Steps to reproduce the issue:
Create container with
podman run --ipc host --name pidtest --pid host --privileged --security-opt label=disable --ulimit host --user root:root -it registry.fedoraproject.org/fedora:34 /bin/bash
Try copying file into container
touch /tmp/test && podman cp /tmp/test pidtest:/tmp/test
Describe the results you received:
Error: "/tmp/test" could not be found on container pidtest: operation not permitted
Describe the results you expected:
File should be copied and no errors returned.
Additional information you deem important (e.g. issue happens only occasionally):
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.):
Fedora 34 Silverblue
The text was updated successfully, but these errors were encountered: