代码拉取完成,页面将自动刷新
同步操作将从 OpenCloudOS Stream/audit 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From c408dd51c3010bef5e92390aa47dbc5e2b9a8391 Mon Sep 17 00:00:00 2001
From: Steve Grubb <ausearch.1@gmail.com>
Date: Fri, 8 Mar 2024 16:26:10 -0500
Subject: [PATCH] Small fix for MAC_POLICY_LOAD and filesystem list audit rules
in the normalizer
---
auparse/normalize.c | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/auparse/normalize.c b/auparse/normalize.c
index ff71f1695..e4cc699a4 100644
--- a/auparse/normalize.c
+++ b/auparse/normalize.c
@@ -524,6 +524,13 @@ static int set_program_obj(auparse_state_t *au)
D.thing.primary = set_field(D.thing.primary,
auparse_get_field_num(au));
}
+ } else if (type == AUDIT_MAC_POLICY_LOAD) {
+ if (auparse_find_field(au, "lsm")) {
+ D.thing.primary = set_record(0,
+ auparse_get_record_num(au));
+ D.thing.primary = set_field(D.thing.primary,
+ auparse_get_field_num(au));
+ }
} else if (auparse_find_field(au, "exe")) {
const char *exe = auparse_interpret_field(au);
if ((strncmp(exe, "/usr/bin/python", 15) == 0) ||
@@ -1085,6 +1092,10 @@ const char *find_config_change_object(auparse_state_t *au)
return f;
auparse_first_record(au);
f = auparse_find_field(au, "actions"); // seccomp-logging
+ if (f)
+ return f;
+ auparse_first_record(au);
+ f = auparse_find_field(au, "list"); // If nothing else, the list
if (f)
return f;
@@ -1234,8 +1245,11 @@ static int normalize_compound(auparse_state_t *au)
o = find_simple_object(au, AUDIT_CONFIG_CHANGE);
D.thing.primary = o;
}
- } else
+ } else {
normalize_syscall(au, syscall);
+ if (otype == AUDIT_MAC_POLICY_LOAD)
+ set_program_obj(au);
+ }
}
free((void *)syscall);
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。