When a users asks for specific devices we should still add them and not
ignore them just because privileged adds all of them.
Most notably if you set --device /dev/null:/dev/test you expect
/dev/test in the container, however as we ignored them this was not the
case. Another side effect is that the input was not validated at at all.
This leads to confusion as descriped in the issue.
Needs approval from an approver in each of these files:
- ~~[OWNERS](https://github.com/containers/podman/blob/main/OWNERS)~~ [Luap99]
Approvers can indicate their approval by writing `/approve` in a comment
Approvers can cancel approval by writing `/approve cancel` in a comment
When a users asks for specific devices we should still add them and not ignore them just because privileged adds all of them.
Most notably if you set --device /dev/null:/dev/test you expect /dev/test in the container, however as we ignored them this was not the case. Another side effect is that the input was not validated at at all. This leads to confusion as descriped in the issue.
Fixes https://github.com/containers/podman/issues/23132
Does this PR introduce a user-facing change?