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 crashes processing --device arg if the middle part is empty #19335
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
Note: |
dfr
added a commit
to dfr/podman
that referenced
this issue
Jul 24, 2023
...empty destination path This fixes a server-side crash for command lines like: # podman run -ti --rm --device /dev/mem::rw alpine sh Fixes containers#19335.
dfr
added a commit
to dfr/podman
that referenced
this issue
Jul 24, 2023
...empty destination path This fixes a server-side crash for command lines like: # podman run -ti --rm --device /dev/mem::rw alpine sh Fixes containers#19335. Signed-off-by: Doug Rabson <dfr@rabson.org>
jakecorrenti
pushed a commit
to jakecorrenti/podman
that referenced
this issue
Jul 28, 2023
...empty destination path This fixes a server-side crash for command lines like: # podman run -ti --rm --device /dev/mem::rw alpine sh Fixes containers#19335. Signed-off-by: Doug Rabson <dfr@rabson.org>
danishprakash
pushed a commit
to danishprakash/podman
that referenced
this issue
Aug 1, 2023
...empty destination path This fixes a server-side crash for command lines like: # podman run -ti --rm --device /dev/mem::rw alpine sh Fixes containers#19335. Signed-off-by: Doug Rabson <dfr@rabson.org>
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
Oct 24, 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.
Issue Description
The podman create (and run) command supports adding device nodes to the container using the '--device' argument. The argument value can have up to three parts to specify host path, container path and access modes. If the second part is empty, podman crashes:
Steps to reproduce the issue
Steps to reproduce the issue
sudo podman run --rm -ti --device /dev/mem::rw alpine sh
Describe the results you received
Podman crashes
Describe the results you expected
The container should be created with container path for the device the same as the host path
podman info output
Podman in a container
No
Privileged Or Rootless
Privileged
Upstream Latest Release
Yes
Additional environment details
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: