-
Notifications
You must be signed in to change notification settings - Fork 47
Description
I am testing the functionality that was added with this PR #78
When attempting to create a policy, per the PR and the tests, I don't get the same results. When launching a container to create a policy from ie.
podman run --device /dev/tty0 fedora /bin/bash
I don't get the device to map. I am running this rootless. When doing an inspect on the container, I see this
"Devices": []
If I run the container as root, the device maps. I am not sure if this is the way udicapodman is supposed to work. Obviously, udica can't create a policy that would allow for the device if its not a part of the container metadata. Does Udica require the container used to build the policy to have the correct permissions? If so, perhaps this needs to be added to the documentation. If not, I am wondering if devices somehow work differently than volumes for example. Perhaps devices can't even map if they are denied by selinux. Since the device can't even be mounted, udica would never even know that it needs to build a policy for it. I hope this makes sense, I am new to Udica, but it appears to be solving an issue I've had for quite some time, it just isn't working the way I expect it to.