[meta-selinux] audit:: update arm syscall table

Submitted by Yi Zhao on Jan. 19, 2021, 3:21 a.m. | Patch ID: 179200

Details

Message ID 20210119032138.39959-1-yi.zhao@windriver.com
State New
Headers show

Commit Message

Yi Zhao Jan. 19, 2021, 3:21 a.m.
Refer to Glibc 2.32, add *_time64 syscalls.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
---
 ...arm_table.h-update-arm-syscall-table.patch | 49 +++++++++++++++++++
 recipes-security/audit/audit_3.0.bb           |  1 +
 2 files changed, 50 insertions(+)
 create mode 100644 recipes-security/audit/audit/0001-lib-arm_table.h-update-arm-syscall-table.patch

Patch hide | download patch | download mbox

diff --git a/recipes-security/audit/audit/0001-lib-arm_table.h-update-arm-syscall-table.patch b/recipes-security/audit/audit/0001-lib-arm_table.h-update-arm-syscall-table.patch
new file mode 100644
index 0000000..2d91aaf
--- /dev/null
+++ b/recipes-security/audit/audit/0001-lib-arm_table.h-update-arm-syscall-table.patch
@@ -0,0 +1,49 @@ 
+From b75eb0db2aed045787b8bf326c7a78e61855af32 Mon Sep 17 00:00:00 2001
+From: Yi Zhao <yi.zhao@windriver.com>
+Date: Mon, 11 Jan 2021 10:25:42 +0800
+Subject: [PATCH] lib/arm_table.h: update arm syscall table
+
+Refer to Glibc 2.32, add *_time64 syscalls.
+
+Upstream-Status: Backport
+[https://github.com/linux-audit/audit-userspace/commit/e7b4006239b5e2c1df7d501a422e39be79a13dc2]
+
+Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
+---
+ lib/arm_table.h | 20 ++++++++++++++++++++
+ 1 file changed, 20 insertions(+)
+
+diff --git a/lib/arm_table.h b/lib/arm_table.h
+index 51a0792..5b0da7d 100644
+--- a/lib/arm_table.h
++++ b/lib/arm_table.h
+@@ -385,6 +385,26 @@ _S(398, "rseq")
+ _S(399, "io_pgetevents")
+ _S(400, "migrate_pages")
+ _S(401, "kexec_file_load")
++_S(403, "clock_gettime64")
++_S(404, "clock_settime64")
++_S(405, "clock_adjtime64")
++_S(406, "clock_getres_time64")
++_S(407, "clock_nanosleep_time64")
++_S(408, "timer_gettime64")
++_S(409, "timer_settime64")
++_S(410, "timerfd_gettime64")
++_S(411, "timerfd_settime64")
++_S(412, "utimensat_time64")
++_S(413, "pselect6_time64")
++_S(414, "ppoll_time64")
++_S(416, "io_pgetevents_time64")
++_S(417, "recvmmsg_time64")
++_S(418, "mq_timedsend_time64")
++_S(419, "mq_timedreceive_time64")
++_S(420, "semtimedop_time64")
++_S(421, "rt_sigtimedwait_time64")
++_S(422, "futex_time64")
++_S(423, "sched_rr_get_interval64")
+ _S(424, "pidfd_send_signal")
+ _S(425, "io_uring_setup")
+ _S(426, "io_uring_enter")
+-- 
+2.25.1
+
diff --git a/recipes-security/audit/audit_3.0.bb b/recipes-security/audit/audit_3.0.bb
index b7170c7..c7776c3 100644
--- a/recipes-security/audit/audit_3.0.bb
+++ b/recipes-security/audit/audit_3.0.bb
@@ -9,6 +9,7 @@  LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
 
 SRC_URI = "git://github.com/linux-audit/${BPN}-userspace.git;branch=master \
            file://Fixed-swig-host-contamination-issue.patch \
+           file://0001-lib-arm_table.h-update-arm-syscall-table.patch \
            file://auditd \
            file://auditd.service \
            file://audit-volatile.conf \