diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2020-12-04 21:07:17 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-12-09 12:20:32 +0000 |
commit | 734755864931a54bac42e397cd409c4e9eb15b00 (patch) | |
tree | 640bce840ee2f57b3aa9471d566936b0d41f0073 /meta/recipes-support/libcap | |
parent | 3fff576f6b1c6a6b26dd759b47b1aad5b4e2fb86 (diff) | |
download | poky-734755864931a54bac42e397cd409c4e9eb15b00.tar.gz |
libcap: update 2.44 -> 2.45
(From OE-Core rev: 16c0d25df1fb2dc724c01bfe7be6ab42974ef0c9)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/libcap')
-rw-r--r-- | meta/recipes-support/libcap/files/0001-tests-do-not-statically-link-a-test.patch | 36 | ||||
-rw-r--r-- | meta/recipes-support/libcap/files/0002-tests-do-not-run-target-executables.patch | 16 | ||||
-rw-r--r-- | meta/recipes-support/libcap/libcap_2.45.bb (renamed from meta/recipes-support/libcap/libcap_2.44.bb) | 2 |
3 files changed, 34 insertions, 20 deletions
diff --git a/meta/recipes-support/libcap/files/0001-tests-do-not-statically-link-a-test.patch b/meta/recipes-support/libcap/files/0001-tests-do-not-statically-link-a-test.patch index d9fd48a9db..3c737b884e 100644 --- a/meta/recipes-support/libcap/files/0001-tests-do-not-statically-link-a-test.patch +++ b/meta/recipes-support/libcap/files/0001-tests-do-not-statically-link-a-test.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 03e925f0d68bc51e1acf1ac2014a9c2452c664bf Mon Sep 17 00:00:00 2001 | 1 | From c22c6c16362c7dbc8d6faea06edee5e07759c5fa Mon Sep 17 00:00:00 2001 |
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
3 | Date: Wed, 15 Jan 2020 17:16:28 +0100 | 3 | Date: Wed, 15 Jan 2020 17:16:28 +0100 |
4 | Subject: [PATCH] tests: do not statically link a test | 4 | Subject: [PATCH] tests: do not statically link a test |
@@ -9,23 +9,37 @@ Upstream-Status: Inappropriate [oe-core specific] | |||
9 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | 9 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> |
10 | 10 | ||
11 | --- | 11 | --- |
12 | progs/Makefile | 2 +- | ||
12 | tests/Makefile | 4 ++-- | 13 | tests/Makefile | 4 ++-- |
13 | 1 file changed, 2 insertions(+), 2 deletions(-) | 14 | 2 files changed, 3 insertions(+), 3 deletions(-) |
14 | 15 | ||
16 | diff --git a/progs/Makefile b/progs/Makefile | ||
17 | index 1d7fc7a..37db8f7 100644 | ||
18 | --- a/progs/Makefile | ||
19 | +++ b/progs/Makefile | ||
20 | @@ -42,7 +42,7 @@ endif | ||
21 | test: $(PROGS) | ||
22 | |||
23 | tcapsh-static: capsh.c $(DEPS) | ||
24 | - $(CC) $(IPATH) $(CAPSH_SHELL) $(CFLAGS) -o $@ $< $(LIBCAPLIB) $(LDFLAGS) --static | ||
25 | + $(CC) $(IPATH) $(CAPSH_SHELL) $(CFLAGS) -o $@ $< $(LIBCAPLIB) $(LDFLAGS) | ||
26 | |||
27 | sudotest: test tcapsh-static | ||
28 | sudo $(LDPATH) ./quicktest.sh | ||
15 | diff --git a/tests/Makefile b/tests/Makefile | 29 | diff --git a/tests/Makefile b/tests/Makefile |
16 | index d569650..f5ca377 100644 | 30 | index 3431df9..727fb86 100644 |
17 | --- a/tests/Makefile | 31 | --- a/tests/Makefile |
18 | +++ b/tests/Makefile | 32 | +++ b/tests/Makefile |
19 | @@ -11,7 +11,7 @@ ifeq ($(DYNAMIC),yes) | 33 | @@ -22,7 +22,7 @@ ifeq ($(PTHREADS),yes) |
20 | LDPATH = LD_LIBRARY_PATH=../libcap | 34 | DEPS += ../libcap/libpsx.so |
21 | DEPSBUILD = all | 35 | endif |
22 | else | 36 | else |
23 | -LDFLAGS += --static | 37 | -LDFLAGS += --static |
24 | +LDFLAGS += | 38 | +LDFLAGS += |
25 | DEPSBUILD = libcap.a libpsx.a | 39 | DEPS=../libcap/libcap.a ../progs/tcapsh-static |
26 | endif | 40 | ifeq ($(PTHREADS),yes) |
27 | 41 | DEPS += ../libcap/libpsx.a | |
28 | @@ -51,7 +51,7 @@ libcap_psx_launch_test: libcap_launch_test.c $(DEPS) | 42 | @@ -106,7 +106,7 @@ noexploit: exploit.o $(DEPS) |
29 | 43 | ||
30 | # This one runs in a chroot with no shared library files. | 44 | # This one runs in a chroot with no shared library files. |
31 | noop: noop.c | 45 | noop: noop.c |
diff --git a/meta/recipes-support/libcap/files/0002-tests-do-not-run-target-executables.patch b/meta/recipes-support/libcap/files/0002-tests-do-not-run-target-executables.patch index bfce8e0547..69287152eb 100644 --- a/meta/recipes-support/libcap/files/0002-tests-do-not-run-target-executables.patch +++ b/meta/recipes-support/libcap/files/0002-tests-do-not-run-target-executables.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 7744c1f678f5226a151bc6b2a254a56835229d91 Mon Sep 17 00:00:00 2001 | 1 | From 652071e430d5eea758965176b7648e79ad404daa Mon Sep 17 00:00:00 2001 |
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
3 | Date: Fri, 20 Dec 2019 16:54:05 +0100 | 3 | Date: Fri, 20 Dec 2019 16:54:05 +0100 |
4 | Subject: [PATCH] tests: do not run target executables | 4 | Subject: [PATCH] tests: do not run target executables |
@@ -11,20 +11,20 @@ Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | |||
11 | 1 file changed, 2 deletions(-) | 11 | 1 file changed, 2 deletions(-) |
12 | 12 | ||
13 | diff --git a/tests/Makefile b/tests/Makefile | 13 | diff --git a/tests/Makefile b/tests/Makefile |
14 | index 8956d5d..d569650 100644 | 14 | index fc39fee..3431df9 100644 |
15 | --- a/tests/Makefile | 15 | --- a/tests/Makefile |
16 | +++ b/tests/Makefile | 16 | +++ b/tests/Makefile |
17 | @@ -27,13 +27,11 @@ sudotest: test run_libcap_launch_test run_libcap_launch_test | 17 | @@ -59,13 +59,11 @@ endif |
18 | install: all | ||
19 | 18 | ||
19 | # unprivileged | ||
20 | run_psx_test: psx_test | 20 | run_psx_test: psx_test |
21 | - $(LDPATH) ./psx_test | 21 | - ./psx_test |
22 | 22 | ||
23 | psx_test: psx_test.c $(DEPS) | 23 | psx_test: psx_test.c $(DEPS) |
24 | $(CC) $(CFLAGS) $(IPATH) $< -o $@ $(LIBPSXLIB) | 24 | $(CC) $(CFLAGS) $(IPATH) $< -o $@ $(LINKEXTRA) $(LIBPSXLIB) $(LDFLAGS) |
25 | 25 | ||
26 | run_libcap_psx_test: libcap_psx_test | 26 | run_libcap_psx_test: libcap_psx_test |
27 | - $(LDPATH) ./libcap_psx_test | 27 | - ./libcap_psx_test |
28 | 28 | ||
29 | libcap_psx_test: libcap_psx_test.c $(DEPS) | 29 | libcap_psx_test: libcap_psx_test.c $(DEPS) |
30 | $(CC) $(CFLAGS) $(IPATH) $< -o $@ $(LIBCAPLIB) $(LIBPSXLIB) $(LDFLAGS) | 30 | $(CC) $(CFLAGS) $(IPATH) $< -o $@ $(LINKEXTRA) $(LIBCAPLIB) $(LIBPSXLIB) $(LDFLAGS) |
diff --git a/meta/recipes-support/libcap/libcap_2.44.bb b/meta/recipes-support/libcap/libcap_2.45.bb index 79875522d6..067ba32d99 100644 --- a/meta/recipes-support/libcap/libcap_2.44.bb +++ b/meta/recipes-support/libcap/libcap_2.45.bb | |||
@@ -12,7 +12,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/libs/security/linux-privs/${BPN}2/${BPN}-${ | |||
12 | file://0002-tests-do-not-run-target-executables.patch \ | 12 | file://0002-tests-do-not-run-target-executables.patch \ |
13 | file://0001-tests-do-not-statically-link-a-test.patch \ | 13 | file://0001-tests-do-not-statically-link-a-test.patch \ |
14 | " | 14 | " |
15 | SRC_URI[sha256sum] = "92188359cd5be86e8e5bd3f6483ac6ce582264f912398937ef763def2205c8e1" | 15 | SRC_URI[sha256sum] = "d66639f765c0e10557666b00f519caf0bd07a95f867dddaee131cd284fac3286" |
16 | 16 | ||
17 | UPSTREAM_CHECK_URI = "https://www.kernel.org/pub/linux/libs/security/linux-privs/${BPN}2/" | 17 | UPSTREAM_CHECK_URI = "https://www.kernel.org/pub/linux/libs/security/linux-privs/${BPN}2/" |
18 | 18 | ||