1 Star 0 Fork 25

贾超/security-tool

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
fix-function-allow-rpm-q.patch 697 Bytes
Copy Edit Raw Blame History
gys authored 2022-06-27 20:04 . fix funtion allow rpm -q
From ec749d9a85c709779dd0862fdaf8d938ae76a12f Mon Sep 17 00:00:00 2001
From: zhengxiaoxiao <zhengxiaoxiao2@huawei.com>
Date: Mon, 27 Jun 2022 19:58:34 +0800
Subject: [PATCH] fix function allow rpm-q
---
security-tool.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/security-tool.sh b/security-tool.sh
index e8619f5..0877081 100644
--- a/security-tool.sh
+++ b/security-tool.sh
@@ -687,7 +687,7 @@ function fn_handle_allow()
local prename=$2
local ret=0
- rpm -q "$rpmname"
+ chroot $ROOTFS rpm -q "$rpmname"
if [ $? -eq 0 ]; then
local denyfile="$ROOTFS/etc/$prename.deny"
local allowfile="$ROOTFS/etc/$prename.allow"
--
1.8.3.1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jiachao2130/security-tool.git
git@gitee.com:jiachao2130/security-tool.git
jiachao2130
security-tool
security-tool
master

Search