mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-13 05:30:02 +00:00
audit: upgrade 3.1.1 -> 3.1.2
Changelog: https://github.com/linux-audit/audit-userspace/releases/tag/v3.1.2 Refresh local patches. Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
+14
-7
@@ -1,7 +1,7 @@
|
|||||||
From 3d13f92c1bb293523670ba01aea7e655b00a6709 Mon Sep 17 00:00:00 2001
|
From 9a32d42dfc6713fd0085dd4563a934afc30ec097 Mon Sep 17 00:00:00 2001
|
||||||
From: Li xin <lixin.fnst@cn.fujitsu.com>
|
From: Li xin <lixin.fnst@cn.fujitsu.com>
|
||||||
Date: Sun, 19 Jul 2015 02:42:58 +0900
|
Date: Sun, 19 Jul 2015 02:42:58 +0900
|
||||||
Subject: [PATCH] audit: Fixed swig host contamination issue
|
Subject: [PATCH] Fixed swig host contamination issue
|
||||||
|
|
||||||
The audit build uses swig to generate a python wrapper.
|
The audit build uses swig to generate a python wrapper.
|
||||||
Unfortunately, the swig info file references host include
|
Unfortunately, the swig info file references host include
|
||||||
@@ -18,6 +18,8 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
|||||||
bindings/swig/src/auditswig.i | 2 +-
|
bindings/swig/src/auditswig.i | 2 +-
|
||||||
2 files changed, 3 insertions(+), 2 deletions(-)
|
2 files changed, 3 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/bindings/swig/python3/Makefile.am b/bindings/swig/python3/Makefile.am
|
||||||
|
index 6131e80d..2fb7207b 100644
|
||||||
--- a/bindings/swig/python3/Makefile.am
|
--- a/bindings/swig/python3/Makefile.am
|
||||||
+++ b/bindings/swig/python3/Makefile.am
|
+++ b/bindings/swig/python3/Makefile.am
|
||||||
@@ -23,6 +23,7 @@
|
@@ -23,6 +23,7 @@
|
||||||
@@ -28,7 +30,7 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
|||||||
LIBS = $(top_builddir)/lib/libaudit.la
|
LIBS = $(top_builddir)/lib/libaudit.la
|
||||||
SWIG_FLAGS = -python -py3 -modern
|
SWIG_FLAGS = -python -py3 -modern
|
||||||
SWIG_INCLUDES = -I. -I$(top_builddir) -I${top_srcdir}/lib $(PYTHON3_INCLUDES)
|
SWIG_INCLUDES = -I. -I$(top_builddir) -I${top_srcdir}/lib $(PYTHON3_INCLUDES)
|
||||||
@@ -37,7 +38,7 @@ _audit_la_DEPENDENCIES =${top_srcdir}/li
|
@@ -37,7 +38,7 @@ _audit_la_DEPENDENCIES =${top_srcdir}/lib/libaudit.h ${top_builddir}/lib/libaudi
|
||||||
_audit_la_LIBADD = ${top_builddir}/lib/libaudit.la
|
_audit_la_LIBADD = ${top_builddir}/lib/libaudit.la
|
||||||
nodist__audit_la_SOURCES = audit_wrap.c
|
nodist__audit_la_SOURCES = audit_wrap.c
|
||||||
audit.py audit_wrap.c: ${srcdir}/../src/auditswig.i
|
audit.py audit_wrap.c: ${srcdir}/../src/auditswig.i
|
||||||
@@ -37,14 +39,19 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
|||||||
|
|
||||||
CLEANFILES = audit.py* audit_wrap.c *~
|
CLEANFILES = audit.py* audit_wrap.c *~
|
||||||
|
|
||||||
|
diff --git a/bindings/swig/src/auditswig.i b/bindings/swig/src/auditswig.i
|
||||||
|
index 9a2c5661..6cbb7295 100644
|
||||||
--- a/bindings/swig/src/auditswig.i
|
--- a/bindings/swig/src/auditswig.i
|
||||||
+++ b/bindings/swig/src/auditswig.i
|
+++ b/bindings/swig/src/auditswig.i
|
||||||
@@ -39,7 +39,7 @@ signed
|
@@ -43,7 +43,7 @@ typedef unsigned uid_t;
|
||||||
#define __attribute(X) /*nothing*/
|
* generating setters against them: https://github.com/swig/swig/issues/1699
|
||||||
typedef unsigned __u32;
|
*/
|
||||||
typedef unsigned uid_t;
|
%ignore audit_rule_data::buf;
|
||||||
-%include "/usr/include/linux/audit.h"
|
-%include "/usr/include/linux/audit.h"
|
||||||
+%include "../lib/audit.h"
|
+%include "../lib/audit.h"
|
||||||
#define __extension__ /*nothing*/
|
#define __extension__ /*nothing*/
|
||||||
%include <stdint.i>
|
%include <stdint.i>
|
||||||
%include "../lib/libaudit.h"
|
%include "../lib/libaudit.h"
|
||||||
|
--
|
||||||
|
2.25.1
|
||||||
|
|
||||||
+7
-8
@@ -1,8 +1,7 @@
|
|||||||
From 79c8d6a2755c9dfa00a5e86378e89a94eef0504d Mon Sep 17 00:00:00 2001
|
From 679cb57fa93984fed345dd3890cdbcbaa24e8518 Mon Sep 17 00:00:00 2001
|
||||||
From: Khem Raj <raj.khem@gmail.com>
|
From: Khem Raj <raj.khem@gmail.com>
|
||||||
Date: Tue, 9 Aug 2022 23:57:03 -0700
|
Date: Tue, 9 Aug 2022 23:57:03 -0700
|
||||||
Subject: [PATCH] Replace __attribute_malloc__ with
|
Subject: [PATCH] Replace __attribute_malloc__ with __attribute__((__malloc__))
|
||||||
__attribute__((__malloc__))
|
|
||||||
|
|
||||||
__attribute_malloc__ is not available on musl
|
__attribute_malloc__ is not available on musl
|
||||||
|
|
||||||
@@ -11,18 +10,18 @@ Fixes
|
|||||||
| __attribute_malloc__ __attr_dealloc (auparse_destroy, 1);
|
| __attribute_malloc__ __attr_dealloc (auparse_destroy, 1);
|
||||||
| ^
|
| ^
|
||||||
|
|
||||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
||||||
---
|
|
||||||
Upstream-Status: Pending
|
Upstream-Status: Pending
|
||||||
|
|
||||||
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||||
|
---
|
||||||
auparse/auparse.h | 2 +-
|
auparse/auparse.h | 2 +-
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
diff --git a/auparse/auparse.h b/auparse/auparse.h
|
diff --git a/auparse/auparse.h b/auparse/auparse.h
|
||||||
index 95cf256d..c7dbe5ff 100644
|
index 5cb7402e..39156eff 100644
|
||||||
--- a/auparse/auparse.h
|
--- a/auparse/auparse.h
|
||||||
+++ b/auparse/auparse.h
|
+++ b/auparse/auparse.h
|
||||||
@@ -51,7 +51,7 @@ typedef void (*auparse_callback_ptr)(auparse_state_t *au,
|
@@ -54,7 +54,7 @@ typedef void (*auparse_callback_ptr)(auparse_state_t *au,
|
||||||
void auparse_destroy(auparse_state_t *au);
|
void auparse_destroy(auparse_state_t *au);
|
||||||
void auparse_destroy_ext(auparse_state_t *au, auparse_destroy_what_t what);
|
void auparse_destroy_ext(auparse_state_t *au, auparse_destroy_what_t what);
|
||||||
auparse_state_t *auparse_init(ausource_t source, const void *b)
|
auparse_state_t *auparse_init(ausource_t source, const void *b)
|
||||||
@@ -32,5 +31,5 @@ index 95cf256d..c7dbe5ff 100644
|
|||||||
__attr_access ((__read_only__, 2, 3));
|
__attr_access ((__read_only__, 2, 3));
|
||||||
int auparse_feed(auparse_state_t *au, const char *data, size_t data_len)
|
int auparse_feed(auparse_state_t *au, const char *data, size_t data_len)
|
||||||
--
|
--
|
||||||
2.37.1
|
2.25.1
|
||||||
|
|
||||||
+3
-3
@@ -8,15 +8,15 @@ LICENSE = "GPL-2.0-or-later & LGPL-2.0-or-later"
|
|||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
|
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
|
||||||
|
|
||||||
SRC_URI = "git://github.com/linux-audit/${BPN}-userspace.git;branch=master;protocol=https \
|
SRC_URI = "git://github.com/linux-audit/${BPN}-userspace.git;branch=master;protocol=https \
|
||||||
file://Fixed-swig-host-contamination-issue.patch \
|
file://0001-Fixed-swig-host-contamination-issue.patch \
|
||||||
file://0001-Replace-__attribute_malloc__-with-__attribute__-__ma.patch \
|
file://0002-Replace-__attribute_malloc__-with-__attribute__-__ma.patch \
|
||||||
file://auditd \
|
file://auditd \
|
||||||
file://auditd.service \
|
file://auditd.service \
|
||||||
file://audit-volatile.conf \
|
file://audit-volatile.conf \
|
||||||
"
|
"
|
||||||
|
|
||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
SRCREV = "6e367585a899231da05797c6126f8bb01febb2f5"
|
SRCREV = "572eb7d4fe926e7c1c52166d08e78af54877cbc5"
|
||||||
|
|
||||||
inherit autotools python3targetconfig update-rc.d systemd
|
inherit autotools python3targetconfig update-rc.d systemd
|
||||||
|
|
||||||
Reference in New Issue
Block a user