summaryrefslogtreecommitdiffstats
path: root/recipes-security/selinux/checkpolicy/0001-checkpolicy-remove-unused-te_assertions.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-security/selinux/checkpolicy/0001-checkpolicy-remove-unused-te_assertions.patch')
-rw-r--r--recipes-security/selinux/checkpolicy/0001-checkpolicy-remove-unused-te_assertions.patch45
1 files changed, 45 insertions, 0 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
new file mode 100644
index 0000000..61c301e
--- /dev/null
+++ b/recipes-security/selinux/checkpolicy/0001-checkpolicy-remove-unused-te_assertions.patch
@@ -0,0 +1,45 @@
1From 95d8f16ece96829109eb75a605b1459a25b5a6be Mon Sep 17 00:00:00 2001
2From: Ondrej Mosnacek <omosnace@redhat.com>
3Date: Thu, 23 Jan 2020 13:57:15 +0100
4Subject: [PATCH] checkpolicy: remove unused te_assertions
5
6This variable is declared in a header file, but never defined or used.
7The te_assert structure definition is only used in this declaration, so
8remove both.
9
10Upstream-Status: Backport [https://github.com/SELinuxProject/selinux/commit/4d330d0d3155211f119b3082f728ae42dcc01e96]
11
12Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
13Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
14---
15 checkpolicy/checkpolicy.h | 14 --------------
16 1 file changed, 14 deletions(-)
17
18diff --git a/checkpolicy.h b/checkpolicy.h
19index 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--
442.24.1
45