diff options
author | Yi Zhao <yi.zhao@windriver.com> | 2021-01-07 11:43:36 +0800 |
---|---|---|
committer | Joe MacDonald <joe@deserted.net> | 2021-01-14 07:12:08 -0500 |
commit | f1b5afe753881c8fb24eb3ad54e1f389c6b85049 (patch) | |
tree | 803424dac3e74dfce6eda541c0142474e9cc715b | |
parent | eb8c4da63f0ba19b4984c6ba01f72440045b0152 (diff) | |
download | meta-selinux-f1b5afe753881c8fb24eb3ad54e1f389c6b85049.tar.gz |
checkpolicy: upgrade to 3.0 (20191204)
Drop backported patch:
0001-checkpolicy-remove-unused-te_assertions.patch
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
3 files changed, 7 insertions, 56 deletions
diff --git a/recipes-security/selinux/checkpolicy/0001-checkpolicy-remove-unused-te_assertions.patch b/recipes-security/selinux/checkpolicy/0001-checkpolicy-remove-unused-te_assertions.patch deleted file mode 100644 index 61c301e..0000000 --- a/recipes-security/selinux/checkpolicy/0001-checkpolicy-remove-unused-te_assertions.patch +++ /dev/null | |||
@@ -1,45 +0,0 @@ | |||
1 | From 95d8f16ece96829109eb75a605b1459a25b5a6be Mon Sep 17 00:00:00 2001 | ||
2 | From: Ondrej Mosnacek <omosnace@redhat.com> | ||
3 | Date: Thu, 23 Jan 2020 13:57:15 +0100 | ||
4 | Subject: [PATCH] checkpolicy: remove unused te_assertions | ||
5 | |||
6 | This variable is declared in a header file, but never defined or used. | ||
7 | The te_assert structure definition is only used in this declaration, so | ||
8 | remove both. | ||
9 | |||
10 | Upstream-Status: Backport [https://github.com/SELinuxProject/selinux/commit/4d330d0d3155211f119b3082f728ae42dcc01e96] | ||
11 | |||
12 | Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com> | ||
13 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | ||
14 | --- | ||
15 | checkpolicy/checkpolicy.h | 14 -------------- | ||
16 | 1 file changed, 14 deletions(-) | ||
17 | |||
18 | diff --git a/checkpolicy.h b/checkpolicy.h | ||
19 | index 3868f1fa023b..f127687e72a6 100644 | ||
20 | --- a/checkpolicy.h | ||
21 | +++ b/checkpolicy.h | ||
22 | @@ -1,20 +1,6 @@ | ||
23 | #ifndef _CHECKPOLICY_H_ | ||
24 | #define _CHECKPOLICY_H_ | ||
25 | |||
26 | -#include <sepol/policydb/ebitmap.h> | ||
27 | - | ||
28 | -typedef struct te_assert { | ||
29 | - ebitmap_t stypes; | ||
30 | - ebitmap_t ttypes; | ||
31 | - ebitmap_t tclasses; | ||
32 | - int self; | ||
33 | - sepol_access_vector_t *avp; | ||
34 | - unsigned long line; | ||
35 | - struct te_assert *next; | ||
36 | -} te_assert_t; | ||
37 | - | ||
38 | -te_assert_t *te_assertions; | ||
39 | - | ||
40 | extern unsigned int policyvers; | ||
41 | |||
42 | #endif | ||
43 | -- | ||
44 | 2.24.1 | ||
45 | |||
diff --git a/recipes-security/selinux/checkpolicy_3.0.bb b/recipes-security/selinux/checkpolicy_3.0.bb deleted file mode 100644 index 50d6217..0000000 --- a/recipes-security/selinux/checkpolicy_3.0.bb +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | require selinux_20191204.inc | ||
2 | require ${BPN}.inc | ||
3 | |||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833" | ||
5 | |||
6 | SRC_URI[md5sum] = "b7c5547b95ce855bcdc10cb8adba8223" | ||
7 | SRC_URI[sha256sum] = "c88c719a141dd5c1202d49c378c7f063349d630522d5e04dc6e0c53da81aa4f8" | ||
8 | |||
9 | SRC_URI += "\ | ||
10 | file://0001-checkpolicy-remove-unused-te_assertions.patch \ | ||
11 | " | ||
diff --git a/recipes-security/selinux/checkpolicy_3.1.bb b/recipes-security/selinux/checkpolicy_3.1.bb new file mode 100644 index 0000000..71045b8 --- /dev/null +++ b/recipes-security/selinux/checkpolicy_3.1.bb | |||
@@ -0,0 +1,7 @@ | |||
1 | require selinux_20200710.inc | ||
2 | require ${BPN}.inc | ||
3 | |||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833" | ||
5 | |||
6 | SRC_URI[md5sum] = "1302676cd8853f740a963fd6d5bb4172" | ||
7 | SRC_URI[sha256sum] = "dfc7707070520c93b14fbbdfdbe081364d806bf28e3e79e10318c2594c77bbb2" | ||