!115 [sync] PR-113: fix smc insmod error
From: @openeuler-sync-bot Reviewed-by: @ksana123 Signed-off-by: @ksana123
This commit is contained in:
commit
e53e6e6d1b
26
0008-smc_tune-add-insmod-to-the-whilelist.patch
Normal file
26
0008-smc_tune-add-insmod-to-the-whilelist.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
From f829a8fbee8a094c7793cea045db9719f10062bc Mon Sep 17 00:00:00 2001
|
||||||
|
From: fly_1997 <flylove7@outlook.com>
|
||||||
|
Date: Sun, 16 Mar 2025 03:59:56 +0800
|
||||||
|
Subject: [PATCH] smc_tune: add insmod to the whilelist
|
||||||
|
|
||||||
|
---
|
||||||
|
src/plugin/tune/system/network/smc_tune/smc_ueid.cpp | 3 ++-
|
||||||
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/plugin/tune/system/network/smc_tune/smc_ueid.cpp b/src/plugin/tune/system/network/smc_tune/smc_ueid.cpp
|
||||||
|
index 6b57eb1..599e774 100644
|
||||||
|
--- a/src/plugin/tune/system/network/smc_tune/smc_ueid.cpp
|
||||||
|
+++ b/src/plugin/tune/system/network/smc_tune/smc_ueid.cpp
|
||||||
|
@@ -20,7 +20,8 @@ const struct nla_policy smc_gen_ueid_policy[SMC_ACC_NLA_EID_TABLE_MAX + 1] = {
|
||||||
|
const std::vector<std::string> whiteList ={
|
||||||
|
"lsmod",
|
||||||
|
"grep",
|
||||||
|
- "rmmod"
|
||||||
|
+ "rmmod",
|
||||||
|
+ "insmod"
|
||||||
|
};
|
||||||
|
|
||||||
|
static int HandleGenUeidReply(struct nl_msg *msg, void *arg)
|
||||||
|
--
|
||||||
|
2.33.0
|
||||||
|
|
||||||
@ -1,6 +1,6 @@
|
|||||||
Name: oeAware-manager
|
Name: oeAware-manager
|
||||||
Version: v2.0.2
|
Version: v2.0.2
|
||||||
Release: 5
|
Release: 6
|
||||||
Summary: OeAware is a framework for implementing low-load collection, sensing, and tuning on openEuler.
|
Summary: OeAware is a framework for implementing low-load collection, sensing, and tuning on openEuler.
|
||||||
License: MulanPSL2
|
License: MulanPSL2
|
||||||
URL: https://gitee.com/openeuler/%{name}
|
URL: https://gitee.com/openeuler/%{name}
|
||||||
@ -12,6 +12,7 @@ Patch4: 0004-InfocmdHandler-add-the-display-of-running-status.patch
|
|||||||
Patch5: 0005-add-parameter-detection.patch
|
Patch5: 0005-add-parameter-detection.patch
|
||||||
Patch6: 0006-fix-issues.patch
|
Patch6: 0006-fix-issues.patch
|
||||||
Patch7: 0007-fix-return-value-type-of-the-function.patch
|
Patch7: 0007-fix-return-value-type-of-the-function.patch
|
||||||
|
Patch8: 0008-smc_tune-add-insmod-to-the-whilelist.patch
|
||||||
|
|
||||||
BuildRequires: cmake make gcc-c++
|
BuildRequires: cmake make gcc-c++
|
||||||
BuildRequires: boost-devel
|
BuildRequires: boost-devel
|
||||||
@ -112,6 +113,9 @@ fi
|
|||||||
%attr(0644, root, root) %{_includedir}/oeaware/data/*.h
|
%attr(0644, root, root) %{_includedir}/oeaware/data/*.h
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Mar 24 2025 fly_1997 <flylove7@outlook.com> -v2.0.2-6
|
||||||
|
- fix smc insmod error
|
||||||
|
|
||||||
* Wed Mar 19 2025 fly_1997 <flylove7@outlook.com> -v2.0.2-5
|
* Wed Mar 19 2025 fly_1997 <flylove7@outlook.com> -v2.0.2-5
|
||||||
- add smc_acc.yaml
|
- add smc_acc.yaml
|
||||||
- fix type error
|
- fix type error
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user