Blame SOURCES/0073-selinux_child-Do-not-ignore-return-values.patch
|
|
905b4d |
From 863f4705e8961cfc7a21c276d186d3059d20f53e Mon Sep 17 00:00:00 2001
|
|
|
905b4d |
From: Michal Zidek <mzidek@redhat.com>
|
|
|
905b4d |
Date: Thu, 6 Nov 2014 16:35:11 +0100
|
|
|
905b4d |
Subject: [PATCH 73/75] selinux_child: Do not ignore return values.
|
|
|
905b4d |
MIME-Version: 1.0
|
|
|
905b4d |
Content-Type: text/plain; charset=UTF-8
|
|
|
905b4d |
Content-Transfer-Encoding: 8bit
|
|
|
905b4d |
|
|
|
905b4d |
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
|
|
|
905b4d |
---
|
|
|
905b4d |
src/providers/ipa/selinux_child.c | 8 ++++++++
|
|
|
905b4d |
1 file changed, 8 insertions(+)
|
|
|
905b4d |
|
|
|
905b4d |
diff --git a/src/providers/ipa/selinux_child.c b/src/providers/ipa/selinux_child.c
|
|
|
905b4d |
index a624cfd30d6795c305b7673d849213c74de95cd8..a38ffcb26f890349f47478063103e603fe6304cf 100644
|
|
|
905b4d |
--- a/src/providers/ipa/selinux_child.c
|
|
|
905b4d |
+++ b/src/providers/ipa/selinux_child.c
|
|
|
905b4d |
@@ -241,8 +241,16 @@ int main(int argc, const char *argv[])
|
|
|
905b4d |
DEBUG(SSSDBG_TRACE_FUNC, "performing selinux operations\n");
|
|
|
905b4d |
|
|
|
905b4d |
ret = set_seuser(ibuf->username, ibuf->seuser, ibuf->mls_range);
|
|
|
905b4d |
+ if (ret != EOK) {
|
|
|
905b4d |
+ DEBUG(SSSDBG_CRIT_FAILURE, "Cannot set SELinux login context.\n");
|
|
|
905b4d |
+ goto fail;
|
|
|
905b4d |
+ }
|
|
|
905b4d |
|
|
|
905b4d |
ret = prepare_response(main_ctx, ret, &resp);
|
|
|
905b4d |
+ if (ret != EOK) {
|
|
|
905b4d |
+ DEBUG(SSSDBG_CRIT_FAILURE, "Failed to prepare response buffer.\n");
|
|
|
905b4d |
+ goto fail;
|
|
|
905b4d |
+ }
|
|
|
905b4d |
|
|
|
905b4d |
errno = 0;
|
|
|
905b4d |
|
|
|
905b4d |
--
|
|
|
905b4d |
1.9.3
|
|
|
905b4d |
|