summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIoan-Adrian Ratiu <adrian.ratiu@ni.com>2018-06-18 16:42:56 +0300
committerJoe MacDonald <joe_macdonald@mentor.com>2018-08-13 11:20:32 -0400
commit4df58585fc034482d5d16670479416aa86387750 (patch)
tree01396a0d85e5c34ff3a9a60254c90520fba179eb
parentfdb477049cf9150f7b93d7f1954af15bd0ed3f97 (diff)
downloadmeta-selinux-4df58585fc034482d5d16670479416aa86387750.tar.gz
libsemanage: refresh patches to remove fuzz
Recent versions of bitbake starting with sumo issue warnings if patches are applied with fuzz (in the future these will be errors). Regenerated patches using: devtool modify <recipe> devtool finish --force-patch-refresh <recipe> <layer_path> Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
-rw-r--r--recipes-security/selinux/libsemanage/0001-src-Makefile-fix-includedir-in-libselinux.pc.patch16
-rw-r--r--recipes-security/selinux/libsemanage/libsemanage-Fix-execve-segfaults-on-Ubuntu.patch20
-rw-r--r--recipes-security/selinux/libsemanage/libsemanage-allow-to-disable-audit-support.patch8
-rw-r--r--recipes-security/selinux/libsemanage/libsemanage-define-FD_CLOEXEC-as-necessary.patch14
-rw-r--r--recipes-security/selinux/libsemanage/libsemanage-disable-expand-check-on-policy-load.patch13
-rw-r--r--recipes-security/selinux/libsemanage/libsemanage-drop-Wno-unused-but-set-variable.patch19
-rw-r--r--recipes-security/selinux/libsemanage/libsemanage-fix-path-nologin.patch15
7 files changed, 54 insertions, 51 deletions
diff --git a/recipes-security/selinux/libsemanage/0001-src-Makefile-fix-includedir-in-libselinux.pc.patch b/recipes-security/selinux/libsemanage/0001-src-Makefile-fix-includedir-in-libselinux.pc.patch
index 72b97df..3d1e110 100644
--- a/recipes-security/selinux/libsemanage/0001-src-Makefile-fix-includedir-in-libselinux.pc.patch
+++ b/recipes-security/selinux/libsemanage/0001-src-Makefile-fix-includedir-in-libselinux.pc.patch
@@ -1,4 +1,4 @@
1From 63d2c02a4dfa5ccd5d62a9f80b6a50cbb9946fbb Mon Sep 17 00:00:00 2001 1From 992d02fe0d08361529a5d158119c02521786798f Mon Sep 17 00:00:00 2001
2From: Robert Yang <liezhi.yang@windriver.com> 2From: Robert Yang <liezhi.yang@windriver.com>
3Date: Thu, 18 Feb 2016 02:39:16 +0000 3Date: Thu, 18 Feb 2016 02:39:16 +0000
4Subject: [PATCH] src/Makefile: fix includedir in libselinux.pc 4Subject: [PATCH] src/Makefile: fix includedir in libselinux.pc
@@ -6,23 +6,21 @@ Subject: [PATCH] src/Makefile: fix includedir in libselinux.pc
6Upstream-Status: Pending 6Upstream-Status: Pending
7 7
8Signed-off-by: Robert Yang <liezhi.yang@windriver.com> 8Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
9
9--- 10---
10 src/Makefile | 2 +- 11 src/Makefile | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-) 12 1 file changed, 1 insertion(+), 1 deletion(-)
12 13
13diff --git a/src/Makefile b/src/Makefile 14diff --git a/src/Makefile b/src/Makefile
14index 1920029..06d291d 100644 15index e8831ab..d3d4644 100644
15--- a/src/Makefile 16--- a/src/Makefile
16+++ b/src/Makefile 17+++ b/src/Makefile
17@@ -115,7 +115,7 @@ $(LIBSO): $(LOBJS) 18@@ -103,7 +103,7 @@ $(LIBSO): $(LOBJS)
18 ln -sf $@ $(TARGET) 19 ln -sf $@ $(TARGET)
19 20
20 $(LIBPC): $(LIBPC).in ../VERSION 21 $(LIBPC): $(LIBPC).in ../VERSION
21- sed -e 's/@VERSION@/$(VERSION)/; s:@prefix@:$(PREFIX):; s:@libdir@:$(LIBBASE):; s:@includedir@:$(INCLUDEDIR):' < $< > $@ 22- sed -e 's/@VERSION@/$(VERSION)/; s:@prefix@:$(PREFIX):; s:@libdir@:$(LIBBASE):; s:@includedir@:$(INCLUDEDIR):' < $< > $@
22+ sed -e 's/@VERSION@/$(VERSION)/; s:@prefix@:$(PREFIX):; s:@libdir@:$(LIBBASE):; s:@includedir@:${prefix}/include:' < $< > $@ 23+ sed -e 's/@VERSION@/$(VERSION)/; s:@prefix@:$(PREFIX):; s:@libdir@:$(LIBBASE):; s:@includedir@:${prefix}/include:' < $< > $@
23 24
24 selinuxswig_python_exception.i: ../include/selinux/selinux.h 25 semanageswig_python_exception.i: ../include/semanage/semanage.h
25 bash exception.sh > $@ 26 bash -e exception.sh > $@ || (rm -f $@ ; false)
26--
272.5.0
28
diff --git a/recipes-security/selinux/libsemanage/libsemanage-Fix-execve-segfaults-on-Ubuntu.patch b/recipes-security/selinux/libsemanage/libsemanage-Fix-execve-segfaults-on-Ubuntu.patch
index 5198124..e3c2f82 100644
--- a/recipes-security/selinux/libsemanage/libsemanage-Fix-execve-segfaults-on-Ubuntu.patch
+++ b/recipes-security/selinux/libsemanage/libsemanage-Fix-execve-segfaults-on-Ubuntu.patch
@@ -1,4 +1,4 @@
1From 35aa581aa734d8d93dc5e08bc02d32fa3b50fae2 Mon Sep 17 00:00:00 2001 1From c87bef28e768e2f6bc8612a768ebf9099d156576 Mon Sep 17 00:00:00 2001
2From: Xin Ouyang <Xin.Ouyang@windriver.com> 2From: Xin Ouyang <Xin.Ouyang@windriver.com>
3Date: Mon, 26 Mar 2012 15:15:16 +0800 3Date: Mon, 26 Mar 2012 15:15:16 +0800
4Subject: [PATCH] libsemanage: Fix execve segfaults on Ubuntu. 4Subject: [PATCH] libsemanage: Fix execve segfaults on Ubuntu.
@@ -8,23 +8,21 @@ this may cause segfaults on Ubuntu.
8Such as "make load" while building refpolicy. 8Such as "make load" while building refpolicy.
9 9
10http://oss.tresys.com/pipermail/refpolicy/2011-December/004859.html 10http://oss.tresys.com/pipermail/refpolicy/2011-December/004859.html
11
11--- 12---
12 src/semanage_store.c | 2 +- 13 src/semanage_store.c | 2 +-
13 1 files changed, 1 insertions(+), 1 deletions(-) 14 1 file changed, 1 insertion(+), 1 deletion(-)
14 15
15diff --git a/src/semanage_store.c b/src/semanage_store.c 16diff --git a/src/semanage_store.c b/src/semanage_store.c
16index a223aa7..c0af87d 100644 17index 6158d08..1923f0f 100644
17--- a/src/semanage_store.c 18--- a/src/semanage_store.c
18+++ b/src/semanage_store.c 19+++ b/src/semanage_store.c
19@@ -1015,7 +1015,7 @@ static int semanage_exec_prog(semanage_handle_t * sh, 20@@ -1405,7 +1405,7 @@ static int semanage_exec_prog(semanage_handle_t * sh,
20 } else if (forkval == 0) { 21 if (forkval == 0) {
21 /* child process. file descriptors will be closed 22 /* child process. file descriptors will be closed
22 * because they were set as close-on-exec. */ 23 * because they were set as close-on-exec. */
23- execve(e->path, argv, NULL); 24- execve(e->path, argv, NULL);
24+ execv(e->path, argv); 25+ execv(e->path, argv);
25 _exit(EXIT_FAILURE); /* if execve() failed */ 26 _exit(EXIT_FAILURE); /* if execve() failed */
26 } else { 27 }
27 /* parent process. wait for child to finish */ 28
28--
291.7.5.4
30
diff --git a/recipes-security/selinux/libsemanage/libsemanage-allow-to-disable-audit-support.patch b/recipes-security/selinux/libsemanage/libsemanage-allow-to-disable-audit-support.patch
index 91efe81..205bc97 100644
--- a/recipes-security/selinux/libsemanage/libsemanage-allow-to-disable-audit-support.patch
+++ b/recipes-security/selinux/libsemanage/libsemanage-allow-to-disable-audit-support.patch
@@ -1,4 +1,4 @@
1From 7d23189c4541124469aad24fe1719f2a24b4ca48 Mon Sep 17 00:00:00 2001 1From 8981b979e36afe2d8384b63c3f48fa8854d1983a Mon Sep 17 00:00:00 2001
2From: Wenzong Fan <wenzong.fan@windriver.com> 2From: Wenzong Fan <wenzong.fan@windriver.com>
3Date: Mon, 20 Jan 2014 03:53:48 -0500 3Date: Mon, 20 Jan 2014 03:53:48 -0500
4Subject: [PATCH] libsemanage: allow to disable audit support 4Subject: [PATCH] libsemanage: allow to disable audit support
@@ -6,6 +6,7 @@ Subject: [PATCH] libsemanage: allow to disable audit support
6Upstream-Status: Pending 6Upstream-Status: Pending
7 7
8Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> 8Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
9
9--- 10---
10 src/Makefile | 10 +++++++++- 11 src/Makefile | 10 +++++++++-
11 src/seusers_local.c | 13 +++++++++++++ 12 src/seusers_local.c | 13 +++++++++++++
@@ -13,7 +14,7 @@ Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
13 3 files changed, 31 insertions(+), 2 deletions(-) 14 3 files changed, 31 insertions(+), 2 deletions(-)
14 15
15diff --git a/src/Makefile b/src/Makefile 16diff --git a/src/Makefile b/src/Makefile
16index fdb178f..43e1266 100644 17index d457208..e8831ab 100644
17--- a/src/Makefile 18--- a/src/Makefile
18+++ b/src/Makefile 19+++ b/src/Makefile
19@@ -29,6 +29,14 @@ ifeq ($(DEBUG),1) 20@@ -29,6 +29,14 @@ ifeq ($(DEBUG),1)
@@ -121,6 +122,3 @@ index 2ef8d30..50d582a 100644
121 122
122 OBJECTS = $(SOURCES:.c=.o) 123 OBJECTS = $(SOURCES:.c=.o)
123 124
124--
1252.13.0
126
diff --git a/recipes-security/selinux/libsemanage/libsemanage-define-FD_CLOEXEC-as-necessary.patch b/recipes-security/selinux/libsemanage/libsemanage-define-FD_CLOEXEC-as-necessary.patch
index 7be4381..8b15a80 100644
--- a/recipes-security/selinux/libsemanage/libsemanage-define-FD_CLOEXEC-as-necessary.patch
+++ b/recipes-security/selinux/libsemanage/libsemanage-define-FD_CLOEXEC-as-necessary.patch
@@ -1,7 +1,7 @@
1From e783080f30e00d00800ff3491d88c62b2a1c637b Mon Sep 17 00:00:00 2001 1From 0e97e4d19627f78bf04445cd51902ccf4f7cf239 Mon Sep 17 00:00:00 2001
2From: Joe MacDonald <joe.macdonald@windriver.com> 2From: Joe MacDonald <joe.macdonald@windriver.com>
3Date: Tue, 15 Oct 2013 10:17:38 -0400 3Date: Tue, 15 Oct 2013 10:17:38 -0400
4Subject: [PATCH 3/3] libsemanage: define FD_CLOEXEC as necessary 4Subject: [PATCH] libsemanage: define FD_CLOEXEC as necessary
5 5
6In truly old systems, even FD_CLOEXEC may not be defined. Produce a 6In truly old systems, even FD_CLOEXEC may not be defined. Produce a
7warning and duplicate the #define for FD_CLOEXEC found in 7warning and duplicate the #define for FD_CLOEXEC found in
@@ -10,15 +10,16 @@ asm-generic/fcntl.h on more modern platforms.
10Uptream-Status: Inappropriate 10Uptream-Status: Inappropriate
11 11
12Signed-off-by: Joe MacDonald <joe.macdonald@windriver.com> 12Signed-off-by: Joe MacDonald <joe.macdonald@windriver.com>
13
13--- 14---
14 libsemanage/src/semanage_store.c | 5 +++++ 15 libsemanage/src/semanage_store.c | 5 +++++
15 1 file changed, 5 insertions(+) 16 1 file changed, 5 insertions(+)
16 17
17diff --git a/libsemanage/src/semanage_store.c b/libsemanage/src/semanage_store.c 18diff --git a/libsemanage/src/semanage_store.c b/libsemanage/src/semanage_store.c
18index 57ef49f..488a14a 100644 19index 1923f0f..f7a8760 100644
19--- a/libsemanage/src/semanage_store.c 20--- a/libsemanage/src/semanage_store.c
20+++ b/libsemanage/src/semanage_store.c 21+++ b/libsemanage/src/semanage_store.c
21@@ -65,6 +65,11 @@ static const char *DISABLESTR="disabled"; 22@@ -66,6 +66,11 @@ typedef struct dbase_policydb dbase_t;
22 23
23 #define TRUE 1 24 #define TRUE 1
24 25
@@ -30,6 +31,3 @@ index 57ef49f..488a14a 100644
30 enum semanage_file_defs { 31 enum semanage_file_defs {
31 SEMANAGE_ROOT, 32 SEMANAGE_ROOT,
32 SEMANAGE_TRANS_LOCK, 33 SEMANAGE_TRANS_LOCK,
33--
341.7.10.4
35
diff --git a/recipes-security/selinux/libsemanage/libsemanage-disable-expand-check-on-policy-load.patch b/recipes-security/selinux/libsemanage/libsemanage-disable-expand-check-on-policy-load.patch
index d755464..ea7ba20 100644
--- a/recipes-security/selinux/libsemanage/libsemanage-disable-expand-check-on-policy-load.patch
+++ b/recipes-security/selinux/libsemanage/libsemanage-disable-expand-check-on-policy-load.patch
@@ -1,4 +1,4 @@
1From b8c5b743c0e0435b1b89eb93c2b846bda7f132f5 Mon Sep 17 00:00:00 2001 1From 4376342a5382df384cb387e2a63eaf0bddb51d26 Mon Sep 17 00:00:00 2001
2From: Joe MacDonald <joe@deserted.net> 2From: Joe MacDonald <joe@deserted.net>
3Date: Wed, 7 May 2014 11:36:27 -0400 3Date: Wed, 7 May 2014 11:36:27 -0400
4Subject: [PATCH] libsemanage: disable expand-check on policy load 4Subject: [PATCH] libsemanage: disable expand-check on policy load
@@ -12,14 +12,15 @@ Upstream-Status: Denied [upstream developers want to preserve the default
12 checking: http://marc.info/?l=selinux&m=121794804217721&w=2] 12 checking: http://marc.info/?l=selinux&m=121794804217721&w=2]
13 13
14Signed-off-by: Joe MacDonald <joe@deserted.net> 14Signed-off-by: Joe MacDonald <joe@deserted.net>
15
15--- 16---
16 src/semanage.conf | 4 ++++ 17 src/semanage.conf | 4 ++++
17 1 file changed, 4 insertions(+) 18 1 file changed, 4 insertions(+)
18 19
19Index: libsemanage-2.4/src/semanage.conf 20diff --git a/src/semanage.conf b/src/semanage.conf
20=================================================================== 21index dc8d46b..254f156 100644
21--- libsemanage-2.4.orig/src/semanage.conf 22--- a/src/semanage.conf
22+++ libsemanage-2.4/src/semanage.conf 23+++ b/src/semanage.conf
23@@ -39,3 +39,7 @@ module-store = direct 24@@ -39,3 +39,7 @@ module-store = direct
24 # By default, semanage will generate policies for the SELinux target. 25 # By default, semanage will generate policies for the SELinux target.
25 # To build policies for Xen, uncomment the following line. 26 # To build policies for Xen, uncomment the following line.
diff --git a/recipes-security/selinux/libsemanage/libsemanage-drop-Wno-unused-but-set-variable.patch b/recipes-security/selinux/libsemanage/libsemanage-drop-Wno-unused-but-set-variable.patch
index faf8fc5..cf88150 100644
--- a/recipes-security/selinux/libsemanage/libsemanage-drop-Wno-unused-but-set-variable.patch
+++ b/recipes-security/selinux/libsemanage/libsemanage-drop-Wno-unused-but-set-variable.patch
@@ -1,12 +1,21 @@
1Subject: libselinux: drop flag: -Wno-unused-but-set-variable 1From 3f65789f172003c499f24f00d73a42867fccd277 Mon Sep 17 00:00:00 2001
2From: Randy MacLeod <Randy.MacLeod@windriver.com>
3Date: Tue, 30 Apr 2013 23:15:57 -0400
4Subject: [PATCH] libselinux: drop flag: -Wno-unused-but-set-variable
2 5
3Upstream status: inappropriate (older compilers only). 6Upstream status: inappropriate (older compilers only).
4 7
5Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> 8Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
6 9
7--- libsemanage-2.1.9.orig/src/Makefile 10---
8+++ libsemanage-2.1.9/src/Makefile 11 src/Makefile | 2 +-
9@@ -57,7 +57,7 @@ 12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/src/Makefile b/src/Makefile
15index fdb178f..d457208 100644
16--- a/src/Makefile
17+++ b/src/Makefile
18@@ -58,7 +58,7 @@ OBJS= $(patsubst %.c,%.o,$(SRCS)) conf-scan.o conf-parse.o
10 LOBJS= $(patsubst %.c,%.lo,$(SRCS)) conf-scan.lo conf-parse.lo 19 LOBJS= $(patsubst %.c,%.lo,$(SRCS)) conf-scan.lo conf-parse.lo
11 CFLAGS ?= -Werror -Wall -W -Wundef -Wshadow -Wmissing-noreturn -Wmissing-format-attribute 20 CFLAGS ?= -Werror -Wall -W -Wundef -Wshadow -Wmissing-noreturn -Wmissing-format-attribute
12 21
@@ -14,4 +23,4 @@ Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
14+SWIG_CFLAGS += -Wno-error -Wno-unused-variable -Wno-shadow \ 23+SWIG_CFLAGS += -Wno-error -Wno-unused-variable -Wno-shadow \
15 -Wno-unused-parameter 24 -Wno-unused-parameter
16 25
17 override CFLAGS += -I../include -I$(INCLUDEDIR) -D_GNU_SOURCE 26 override CFLAGS += -I../include -D_GNU_SOURCE
diff --git a/recipes-security/selinux/libsemanage/libsemanage-fix-path-nologin.patch b/recipes-security/selinux/libsemanage/libsemanage-fix-path-nologin.patch
index 5fc1e17..43c5382 100644
--- a/recipes-security/selinux/libsemanage/libsemanage-fix-path-nologin.patch
+++ b/recipes-security/selinux/libsemanage/libsemanage-fix-path-nologin.patch
@@ -1,3 +1,6 @@
1From 1f8164e044f2f727b08c28a69bea19cbf49b071b Mon Sep 17 00:00:00 2001
2From: Xin Ouyang <Xin.Ouyang@windriver.com>
3Date: Fri, 8 Feb 2013 15:16:07 +0800
1Subject: [PATCH] libsemange: fix incorrect path for nologin 4Subject: [PATCH] libsemange: fix incorrect path for nologin
2 5
3shadow package of oe-core and Debian has installed nologin into 6shadow package of oe-core and Debian has installed nologin into
@@ -7,15 +10,16 @@ Upstream-Status: Inappropriate [configuration]
7 10
8Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com> 11Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
9Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> 12Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
13
10--- 14---
11 src/genhomedircon.c | 4 ++-- 15 src/genhomedircon.c | 4 ++--
12 1 file changed, 2 insertions(+), 2 deletions(-) 16 1 file changed, 2 insertions(+), 2 deletions(-)
13 17
14diff --git a/src/genhomedircon.c b/src/genhomedircon.c 18diff --git a/src/genhomedircon.c b/src/genhomedircon.c
15index f3b9b5c..4f4865a 100644 19index b9a74b7..d574ee2 100644
16--- a/src/genhomedircon.c 20--- a/src/genhomedircon.c
17+++ b/src/genhomedircon.c 21+++ b/src/genhomedircon.c
18@@ -58,7 +58,7 @@ 22@@ -60,7 +60,7 @@
19 23
20 /* other paths */ 24 /* other paths */
21 #define PATH_SHELLS_FILE "/etc/shells" 25 #define PATH_SHELLS_FILE "/etc/shells"
@@ -24,7 +28,7 @@ index f3b9b5c..4f4865a 100644
24 28
25 /* comments written to context file */ 29 /* comments written to context file */
26 #define COMMENT_FILE_CONTEXT_HEADER "#\n#\n# " \ 30 #define COMMENT_FILE_CONTEXT_HEADER "#\n#\n# " \
27@@ -393,7 +393,7 @@ static semanage_list_t *get_home_dirs(genhomedircon_settings_t * s) 31@@ -395,7 +395,7 @@ static semanage_list_t *get_home_dirs(genhomedircon_settings_t * s)
28 32
29 /* NOTE: old genhomedircon printed a warning on match */ 33 /* NOTE: old genhomedircon printed a warning on match */
30 if (hand.matched) { 34 if (hand.matched) {
@@ -33,6 +37,3 @@ index f3b9b5c..4f4865a 100644
33 } else { 37 } else {
34 if (semanage_list_push(&homedir_list, path)) 38 if (semanage_list_push(&homedir_list, path))
35 goto fail; 39 goto fail;
36--
371.7.9.5
38