fix ras-mc-ctl.service startup failed when selinux is on

This commit is contained in:
Lv Ying 2023-03-29 15:53:27 -06:00
parent e4e96013fe
commit cdba1b6d27
2 changed files with 34 additions and 1 deletions

View File

@ -0,0 +1,25 @@
From fd9341f5f7f3896c4de2a9a90d7dc366fd2ffedc Mon Sep 17 00:00:00 2001
From: shixuantong <shixuantong1@huawei.com>
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

View File

@ -1,6 +1,6 @@
Name: rasdaemon
Version: 0.6.7
Release: 8
Release: 9
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
@ -44,6 +44,8 @@ Patch6000: backport-rasdaemon-ras-mc-ctl-Fix-script-to-parse-dimm-sizes.patch
Patch6001: backport-rasdaemon-ras-memory-failure-handler-handle-localtim.patch
Patch6002: backport-rasdaemon-ras-report-fix-possible-but-unlikely-file-.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
@ -88,6 +90,12 @@ rm INSTALL %{buildroot}/usr/include/*.h
/usr/bin/systemctl enable rasdaemon.service >/dev/null 2>&1 || :
%changelog
* Wed Mar 29 2023 Lv Ying <lvying6@huawei.com> - 0.6.7-9
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix ras-mc-ctl.service startup failed when selinux is on
* Thu Mar 23 2023 renhongxun <renhongxun@h-partners.com> - 0.6.7-8
- Type:bugfix
- ID:NA