jobcore/audit/audit-3.0.9-flex_array_workaround.patch
Joe Bo Run 57d6ca03ff upg linux-lts
fix audit missing patch files
2023-01-11 01:47:01 +02:00

37 lines
1.4 KiB
Diff

diff -urp audit-3.0.8.orig/bindings/swig/src/auditswig.i audit-3.0.8/bindings/swig/src/auditswig.i
--- audit-3.0.8.orig/bindings/swig/src/auditswig.i 2022-03-29 16:52:34.000000000 -0400
+++ audit-3.0.8/bindings/swig/src/auditswig.i 2022-03-29 17:31:15.810268855 -0400
@@ -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 -urp audit-3.0.8.orig/lib/audit.h audit-3.0.8/lib/audit.h
--- audit-3.0.8.orig/lib/audit.h 2022-03-29 17:29:30.358211892 -0400
+++ audit-3.0.8/lib/audit.h 2022-03-29 17:31:15.811268833 -0400
@@ -514,7 +514,7 @@ struct audit_rule_data {
__u32 values[AUDIT_MAX_FIELDS];
__u32 fieldflags[AUDIT_MAX_FIELDS];
__u32 buflen; /* total length of string fields */
- char buf[]; /* string fields buffer */
+ char buf[0]; /* string fields buffer */
};
#endif /* _LINUX_AUDIT_H_ */
diff -urp audit-3.0.8.orig/lib/libaudit.h audit-3.0.8/lib/libaudit.h
--- audit-3.0.8.orig/lib/libaudit.h 2022-03-29 16:52:34.000000000 -0400
+++ audit-3.0.8/lib/libaudit.h 2022-03-29 17:31:15.812268812 -0400
@@ -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
Only in audit-3.0.8/lib: libaudit.h.orig