diff options
author | Yi Zhao <yi.zhao@windriver.com> | 2019-12-11 13:51:56 +0800 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2020-01-04 15:55:14 -0800 |
commit | c630d5476d7b4aeecf4c8abefdc3f7f7adce1a50 (patch) | |
tree | 6348580e01fdce38a09591594ebb5b7e5dd2182c | |
parent | a09c596ea96cbf657c7b7ce7885fec9c41971b4c (diff) | |
download | meta-security-c630d5476d7b4aeecf4c8abefdc3f7f7adce1a50.tar.gz |
libseccomp: upgrade 2.4.1 -> 2.4.2
Backport a patch to fix ptest build failure on arm64.
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | recipes-security/libseccomp/files/0001-tests-rely-on-__SNR_xxx-instead-of-__NR_xxx-for-sysc.patch | 45 | ||||
-rw-r--r-- | recipes-security/libseccomp/libseccomp_2.4.2.bb (renamed from recipes-security/libseccomp/libseccomp_2.4.1.bb) | 3 |
2 files changed, 47 insertions, 1 deletions
diff --git a/recipes-security/libseccomp/files/0001-tests-rely-on-__SNR_xxx-instead-of-__NR_xxx-for-sysc.patch b/recipes-security/libseccomp/files/0001-tests-rely-on-__SNR_xxx-instead-of-__NR_xxx-for-sysc.patch new file mode 100644 index 0000000..a53433f --- /dev/null +++ b/recipes-security/libseccomp/files/0001-tests-rely-on-__SNR_xxx-instead-of-__NR_xxx-for-sysc.patch | |||
@@ -0,0 +1,45 @@ | |||
1 | From 1ecdddb2a5b61cf527d1f238f88a9d129239f87a Mon Sep 17 00:00:00 2001 | ||
2 | From: Paul Moore <paul@paul-moore.com> | ||
3 | Date: Tue, 5 Nov 2019 15:11:11 -0500 | ||
4 | Subject: [PATCH] tests: rely on __SNR_xxx instead of __NR_xxx for syscalls | ||
5 | |||
6 | We recently changed how libseccomp handles syscall numbers that are | ||
7 | not defined natively, but we missed test #15. | ||
8 | |||
9 | Acked-by: Tom Hromatka <tom.hromatka@oracle.com> | ||
10 | Signed-off-by: Paul Moore <paul@paul-moore.com> | ||
11 | |||
12 | Upstream-Status: Backport | ||
13 | [https://github.com/seccomp/libseccomp/commit/1ecdddb2a5b61cf527d1f238f88a9d129239f87a] | ||
14 | |||
15 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
16 | --- | ||
17 | tests/15-basic-resolver.c | 6 +++--- | ||
18 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
19 | |||
20 | diff --git a/tests/15-basic-resolver.c b/tests/15-basic-resolver.c | ||
21 | index 6badef1..0c1eefe 100644 | ||
22 | --- a/tests/15-basic-resolver.c | ||
23 | +++ b/tests/15-basic-resolver.c | ||
24 | @@ -55,15 +55,15 @@ int main(int argc, char *argv[]) | ||
25 | unsigned int arch; | ||
26 | char *name = NULL; | ||
27 | |||
28 | - if (seccomp_syscall_resolve_name("open") != __NR_open) | ||
29 | + if (seccomp_syscall_resolve_name("open") != __SNR_open) | ||
30 | goto fail; | ||
31 | - if (seccomp_syscall_resolve_name("read") != __NR_read) | ||
32 | + if (seccomp_syscall_resolve_name("read") != __SNR_read) | ||
33 | goto fail; | ||
34 | if (seccomp_syscall_resolve_name("INVALID") != __NR_SCMP_ERROR) | ||
35 | goto fail; | ||
36 | |||
37 | rc = seccomp_syscall_resolve_name_rewrite(SCMP_ARCH_NATIVE, "openat"); | ||
38 | - if (rc != __NR_openat) | ||
39 | + if (rc != __SNR_openat) | ||
40 | goto fail; | ||
41 | |||
42 | while ((arch = arch_list[iter++]) != -1) { | ||
43 | -- | ||
44 | 2.17.1 | ||
45 | |||
diff --git a/recipes-security/libseccomp/libseccomp_2.4.1.bb b/recipes-security/libseccomp/libseccomp_2.4.2.bb index 37a7982..07db82a 100644 --- a/recipes-security/libseccomp/libseccomp_2.4.1.bb +++ b/recipes-security/libseccomp/libseccomp_2.4.2.bb | |||
@@ -4,9 +4,10 @@ SECTION = "security" | |||
4 | LICENSE = "LGPL-2.1" | 4 | LICENSE = "LGPL-2.1" |
5 | LIC_FILES_CHKSUM = "file://LICENSE;beginline=0;endline=1;md5=8eac08d22113880357ceb8e7c37f989f" | 5 | LIC_FILES_CHKSUM = "file://LICENSE;beginline=0;endline=1;md5=8eac08d22113880357ceb8e7c37f989f" |
6 | 6 | ||
7 | SRCREV = "fb43972ea1aab24f2a70193fb7445c2674f594e3" | 7 | SRCREV = "1b6cfd1fc0b7499a28c24299a93a80bd18619563" |
8 | 8 | ||
9 | SRC_URI = "git://github.com/seccomp/libseccomp.git;branch=release-2.4 \ | 9 | SRC_URI = "git://github.com/seccomp/libseccomp.git;branch=release-2.4 \ |
10 | file://0001-tests-rely-on-__SNR_xxx-instead-of-__NR_xxx-for-sysc.patch \ | ||
10 | file://run-ptest \ | 11 | file://run-ptest \ |
11 | " | 12 | " |
12 | 13 | ||