rasdaemon icon indicating copy to clipboard operation
rasdaemon copied to clipboard

When SELinux is enabled, ras-mc-ctl.service fails to be started

Open xiaoge1001 opened this issue 2 years ago • 3 comments

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?

xiaoge1001 avatar Dec 06 '22 07:12 xiaoge1001

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

xiaoge1001 avatar Dec 06 '22 07:12 xiaoge1001

It seems to be a distro-specific issue. Perhaps some permissions are missing for rasdaemon at the selinux policies.

mchehab avatar Jan 21 '23 07:01 mchehab

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

im-0 avatar Mar 03 '24 09:03 im-0