diff --git a/0008-smc_tune-add-insmod-to-the-whilelist.patch b/0008-smc_tune-add-insmod-to-the-whilelist.patch new file mode 100644 index 0000000..51b39c4 --- /dev/null +++ b/0008-smc_tune-add-insmod-to-the-whilelist.patch @@ -0,0 +1,26 @@ +From f829a8fbee8a094c7793cea045db9719f10062bc Mon Sep 17 00:00:00 2001 +From: fly_1997 +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 whiteList ={ + "lsmod", + "grep", +- "rmmod" ++ "rmmod", ++ "insmod" + }; + + static int HandleGenUeidReply(struct nl_msg *msg, void *arg) +-- +2.33.0 + diff --git a/oeAware-manager.spec b/oeAware-manager.spec index 4794b29..256be13 100644 --- a/oeAware-manager.spec +++ b/oeAware-manager.spec @@ -1,6 +1,6 @@ Name: oeAware-manager Version: v2.0.2 -Release: 5 +Release: 6 Summary: OeAware is a framework for implementing low-load collection, sensing, and tuning on openEuler. License: MulanPSL2 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 Patch6: 0006-fix-issues.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: boost-devel @@ -112,6 +113,9 @@ fi %attr(0644, root, root) %{_includedir}/oeaware/data/*.h %changelog +* Mon Mar 24 2025 fly_1997 -v2.0.2-6 +- fix smc insmod error + * Wed Mar 19 2025 fly_1997 -v2.0.2-5 - add smc_acc.yaml - fix type error