diff --git a/fix-ras-mc-ctl.service-startup-failed-when-selinux-is-no.patch b/fix-ras-mc-ctl.service-startup-failed-when-selinux-is-no.patch new file mode 100644 index 0000000000000000000000000000000000000000..45abe97882231d6c11df1baab9c902eaa3ab18b4 --- /dev/null +++ b/fix-ras-mc-ctl.service-startup-failed-when-selinux-is-no.patch @@ -0,0 +1,25 @@ +From fd9341f5f7f3896c4de2a9a90d7dc366fd2ffedc Mon Sep 17 00:00:00 2001 +From: shixuantong +Date: Thu, 1 Dec 2022 12:39:11 +0000 +Subject: [PATCH] fix ras-mc-ctl.service startup failed when selinux is on + +--- + util/ras-mc-ctl.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/util/ras-mc-ctl.in b/util/ras-mc-ctl.in +index 9198a23..888b4e8 100755 +--- a/util/ras-mc-ctl.in ++++ b/util/ras-mc-ctl.in +@@ -39,7 +39,7 @@ my $dbname = "@RASSTATEDIR@/@RAS_DB_FNAME@"; + my $prefix = "@prefix@"; + my $sysconfdir = "@sysconfdir@"; + my $dmidecode = find_prog ("dmidecode"); +-my $modprobe = find_prog ("modprobe") or exit (1); ++my $modprobe = find_prog ("modprobe"); + + my $has_aer = 0; + my $has_arm = 0; +-- +2.33.0 + diff --git a/rasdaemon.spec b/rasdaemon.spec index 7baf05e10585e736fa18c6afd385d2340bc8c3da..98e99542dbca87dc7fcbab6868f0d16fb61700dd 100644 --- a/rasdaemon.spec +++ b/rasdaemon.spec @@ -1,6 +1,6 @@ Name: rasdaemon Version: 0.6.7 -Release: 6 +Release: 7 License: GPLv2 Summary: Utility to get Platform Reliability, Availability and Serviceability (RAS) reports via the Kernel tracing events URL: https://github.com/mchehab/rasdaemon.git @@ -39,6 +39,8 @@ Patch17: 0009-rasdaemon-ras-mc-ctl-Updated-HiSilicon-platform-name.patch Patch18: 0010-rasdaemon-Fix-for-a-memory-out-of-bounds-issue-and-o.patch Patch19: 0001-rasdaemon-use-standard-length-PATH_MAX-for-path-name.patch +Patch9000: fix-ras-mc-ctl.service-startup-failed-when-selinux-is-no.patch + %description The rasdaemon program is a daemon which monitors the platform Reliablity, Availability and Serviceability (RAS) reports from the @@ -83,6 +85,12 @@ rm INSTALL %{buildroot}/usr/include/*.h /usr/bin/systemctl enable rasdaemon.service >/dev/null 2>&1 || : %changelog +* Thu Dec 01 2022 shixuantong - 0.6.7-7 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:fix ras-mc-ctl.service startup failed when selinux is on + * Thu Oct 27 2022 Lei Feng - 0.6.7-6 - Type:bugfix - ID:NA