27 lines
877 B
Diff
27 lines
877 B
Diff
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
|
|
|