rasdaemon
rasdaemon copied to clipboard
When SELinux is enabled, ras-mc-ctl.service fails to be started
Reproduction procedure:
dnf install -y rasdaemon setenforce 1 systemctl start ras-mc-ctl.service systemctl status ras-mc-ctl.service
This problem occurs in my machine, but I don't get valuable output error information. Why does the service fail to be started?
I don't know why. I temporarily use the following method to avoid it. Is this the right? What's the risk?
https://gitee.com/src-openeuler/rasdaemon/blob/c2d3dc48710e7958919ad8166123a39c0332f1cc/fix-ras-mc-ctl.service-startup-failed-when-selinux-is-no.patch
It seems to be a distro-specific issue. Perhaps some permissions are missing for rasdaemon at the selinux policies.
I was able to figure out what is going on. Please see https://github.com/fedora-selinux/selinux-policy/pull/2055 and https://github.com/mchehab/rasdaemon/pull/148