nut: Set container_use_devices SELinux tunable
By default, the Fedora SELinux policy does not allow containers to access device nodes. This setting is independent of CGroup device rules.
This commit is contained in:
@@ -20,6 +20,7 @@ Network=host
|
||||
PodmanArgs=--device-cgroup-rule 'c 189:* rw'
|
||||
|
||||
[Service]
|
||||
ExecStartPre=/usr/sbin/setsebool container_use_devices=1
|
||||
ExecReload=podman exec systemd-%N upsd -c reload
|
||||
|
||||
[Install]
|
||||
|
||||
Reference in New Issue
Block a user