summaryrefslogtreecommitdiffstats
path: root/recipes-security/selinux/libselinux/libselinux-make-O_CLOEXEC-optional.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-security/selinux/libselinux/libselinux-make-O_CLOEXEC-optional.patch')
-rw-r--r--recipes-security/selinux/libselinux/libselinux-make-O_CLOEXEC-optional.patch12
1 files changed, 5 insertions, 7 deletions
diff --git a/recipes-security/selinux/libselinux/libselinux-make-O_CLOEXEC-optional.patch b/recipes-security/selinux/libselinux/libselinux-make-O_CLOEXEC-optional.patch
index a041dd3..6394bf0 100644
--- a/recipes-security/selinux/libselinux/libselinux-make-O_CLOEXEC-optional.patch
+++ b/recipes-security/selinux/libselinux/libselinux-make-O_CLOEXEC-optional.patch
@@ -1,7 +1,7 @@
1From 0a8c1c5f3d866d3a3c0f95653416f5f72587ce3a Mon Sep 17 00:00:00 2001 1From 802d224953294463fa9bc793e46f664ecfea057a Mon Sep 17 00:00:00 2001
2From: Joe MacDonald <joe.macdonald@windriver.com> 2From: Joe MacDonald <joe.macdonald@windriver.com>
3Date: Fri, 11 Oct 2013 09:56:25 -0400 3Date: Fri, 11 Oct 2013 09:56:25 -0400
4Subject: [PATCH 2/2] libselinux: make O_CLOEXEC optional 4Subject: [PATCH] libselinux: make O_CLOEXEC optional
5 5
6Various commits in the selinux tree in the current release added O_CLOEXEC 6Various commits in the selinux tree in the current release added O_CLOEXEC
7to open() calls in an attempt to address file descriptor leaks as 7to open() calls in an attempt to address file descriptor leaks as
@@ -18,6 +18,7 @@ Uptream-Status: Inappropriate [O_CLOEXEC has been in Linux since 2007 and POSIX
18 18
19Signed-off-by: Joe MacDonald <joe.macdonald@windriver.com> 19Signed-off-by: Joe MacDonald <joe.macdonald@windriver.com>
20Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> 20Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
21
21--- 22---
22 src/procattr.c | 16 ++++++++++++++-- 23 src/procattr.c | 16 ++++++++++++++--
23 src/sestatus.c | 8 +++++++- 24 src/sestatus.c | 8 +++++++-
@@ -25,7 +26,7 @@ Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
25 3 files changed, 28 insertions(+), 4 deletions(-) 26 3 files changed, 28 insertions(+), 4 deletions(-)
26 27
27diff --git a/src/procattr.c b/src/procattr.c 28diff --git a/src/procattr.c b/src/procattr.c
28index 7efcd7e..3007876 100644 29index 48dd8af..8bf8432 100644
29--- a/src/procattr.c 30--- a/src/procattr.c
30+++ b/src/procattr.c 31+++ b/src/procattr.c
31@@ -79,7 +79,13 @@ static int openattr(pid_t pid, const char *attr, int flags) 32@@ -79,7 +79,13 @@ static int openattr(pid_t pid, const char *attr, int flags)
@@ -78,7 +79,7 @@ index ed29dc5..0cb15b6 100644
78 goto error; 79 goto error;
79 80
80diff --git a/src/stringrep.c b/src/stringrep.c 81diff --git a/src/stringrep.c b/src/stringrep.c
81index 2dbec2b..de2a70b 100644 82index 2d83f96..17e9232 100644
82--- a/src/stringrep.c 83--- a/src/stringrep.c
83+++ b/src/stringrep.c 84+++ b/src/stringrep.c
84@@ -105,7 +105,13 @@ static struct discover_class_node * discover_class(const char *s) 85@@ -105,7 +105,13 @@ static struct discover_class_node * discover_class(const char *s)
@@ -96,6 +97,3 @@ index 2dbec2b..de2a70b 100644
96 if (fd < 0) 97 if (fd < 0)
97 goto err4; 98 goto err4;
98 99
99--
1002.7.4
101