summaryrefslogtreecommitdiffstats
path: root/recipes-security/selinux/libselinux/libselinux-define-FD_CLOEXEC-as-necessary.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-security/selinux/libselinux/libselinux-define-FD_CLOEXEC-as-necessary.patch')
-rw-r--r--recipes-security/selinux/libselinux/libselinux-define-FD_CLOEXEC-as-necessary.patch14
1 files changed, 6 insertions, 8 deletions
diff --git a/recipes-security/selinux/libselinux/libselinux-define-FD_CLOEXEC-as-necessary.patch b/recipes-security/selinux/libselinux/libselinux-define-FD_CLOEXEC-as-necessary.patch
index 1fa1fba..ad18cf5 100644
--- a/recipes-security/selinux/libselinux/libselinux-define-FD_CLOEXEC-as-necessary.patch
+++ b/recipes-security/selinux/libselinux/libselinux-define-FD_CLOEXEC-as-necessary.patch
@@ -1,7 +1,7 @@
1From 9a843a025fb0eaad537eb9dce28da539cf2cb9c2 Mon Sep 17 00:00:00 2001 1From d0aaf391ab30b253aa22ef6547a039bcac840fc6 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:14:41 -0400 3Date: Tue, 15 Oct 2013 10:14:41 -0400
4Subject: [PATCH 2/3] libselinux: define FD_CLOEXEC as necessary 4Subject: [PATCH] libselinux: 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 libselinux/src/setrans_client.c | 5 +++++ 15 src/setrans_client.c | 5 +++++
15 1 file changed, 5 insertions(+) 16 1 file changed, 5 insertions(+)
16 17
17diff --git a/src/setrans_client.c b/src/setrans_client.c 18diff --git a/src/setrans_client.c b/src/setrans_client.c
18index f9065bd..e07a779 100644 19index fa188a8..a94f02c 100644
19--- a/src/setrans_client.c 20--- a/src/setrans_client.c
20+++ b/src/setrans_client.c 21+++ b/src/setrans_client.c
21@@ -38,6 +38,11 @@ static pthread_key_t destructor_key; 22@@ -39,6 +39,11 @@ static pthread_key_t destructor_key;
22 static int destructor_key_initialized = 0; 23 static int destructor_key_initialized = 0;
23 static __thread char destructor_initialized; 24 static __thread char destructor_initialized;
24 25
@@ -30,6 +31,3 @@ index f9065bd..e07a779 100644
30 /* 31 /*
31 * setransd_open 32 * setransd_open
32 * 33 *
33--
341.7.10.4
35