diff options
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.patch | 12 |
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 @@ | |||
| 1 | From 0a8c1c5f3d866d3a3c0f95653416f5f72587ce3a Mon Sep 17 00:00:00 2001 | 1 | From 802d224953294463fa9bc793e46f664ecfea057a Mon Sep 17 00:00:00 2001 |
| 2 | From: Joe MacDonald <joe.macdonald@windriver.com> | 2 | From: Joe MacDonald <joe.macdonald@windriver.com> |
| 3 | Date: Fri, 11 Oct 2013 09:56:25 -0400 | 3 | Date: Fri, 11 Oct 2013 09:56:25 -0400 |
| 4 | Subject: [PATCH 2/2] libselinux: make O_CLOEXEC optional | 4 | Subject: [PATCH] libselinux: make O_CLOEXEC optional |
| 5 | 5 | ||
| 6 | Various commits in the selinux tree in the current release added O_CLOEXEC | 6 | Various commits in the selinux tree in the current release added O_CLOEXEC |
| 7 | to open() calls in an attempt to address file descriptor leaks as | 7 | to 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 | ||
| 19 | Signed-off-by: Joe MacDonald <joe.macdonald@windriver.com> | 19 | Signed-off-by: Joe MacDonald <joe.macdonald@windriver.com> |
| 20 | Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> | 20 | Signed-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 | ||
| 27 | diff --git a/src/procattr.c b/src/procattr.c | 28 | diff --git a/src/procattr.c b/src/procattr.c |
| 28 | index 7efcd7e..3007876 100644 | 29 | index 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 | ||
| 80 | diff --git a/src/stringrep.c b/src/stringrep.c | 81 | diff --git a/src/stringrep.c b/src/stringrep.c |
| 81 | index 2dbec2b..de2a70b 100644 | 82 | index 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 | -- | ||
| 100 | 2.7.4 | ||
| 101 | |||
