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.
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: