1 Star 0 Fork 36

luhuaxin/audit

forked from src-openEuler/audit 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-audit-flex-array-workaround.patch 1017 Bytes
一键复制 编辑 原始数据 按行查看 历史
zhengxiaoxiao 提交于 2023-07-20 21:21 . update to 3.1.1
commit 0d31f225faef8da3fcd0f69f6544aa274102fe53
Author: Steve Grubb <sgrubb@redhat.com>
Date: Wed Feb 23 14:24:50 2022 -0500
Subject: workaround a kernel change that breaks the build
---
bindings/swig/src.auditswig.i | 2 +-
lib/libaudit.h | 2 +-
2 files changed, 2 insertions(+)m 2 deletions(-)
diff --git a/bindings/swig/src/auditswig.i b/bindings/swig/src/auditswig.i
--- a/bindings/swig/src/auditswig.i
+++ b/bindings/swig/src/auditswig.i
@@ -39,7 +39,7 @@ signed
#define __attribute(X) /*nothing*/
typedef unsigned __u32;
typedef unsigned uid_t;
-%include "/usr/include/linux/audit.h"
+%include "../lib/audit.h"
#define __extension__ /*nothing*/
%include <stdint.i>
%include "../lib/libaudit.h"
diff --git a/lib/libaudit.h b/lib/libaudit.h
--- a/lib/libaudit.h
+++ b/lib/libaudit.h
@@ -27,7 +27,7 @@
#include <stdint.h>
#include <sys/socket.h>
#include <linux/netlink.h>
-#include <linux/audit.h>
+#include "audit.h"
#include <stdarg.h>
#include <syslog.h>
#ifndef __attr_access
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/HuaxinLuGitee/audit.git
git@gitee.com:HuaxinLuGitee/audit.git
HuaxinLuGitee
audit
audit
master

搜索帮助