Skip to content

Commit

Permalink
Add SELinux information about boolean for using random devices
Browse files Browse the repository at this point in the history
Fixes: containers#15930

Signed-off-by: Daniel J Walsh <[email protected]>
  • Loading branch information
rhatdan committed Sep 26, 2022
1 parent a0c0971 commit c1ae7f1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/source/markdown/options/device.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,11 @@ The <<container|pod>> will only store the major and minor numbers of the host de
Podman may load kernel modules required for using the specified
device. The devices that Podman will load modules for when necessary are:
/dev/fuse.

In rootless mode, the new device is bind mounted in the container from the host
rather than Podman creating it within the container space. Because the bind
mount retains its SELinux label on SELinux systems, the container can get
permission denied when accessing the mounted device. Modify SELinux settings to
allow containers to use all device labels via the following command:

$ sudo setsebool -P container_use_devices=true

0 comments on commit c1ae7f1

Please sign in to comment.