summarylogtreecommitdiffstats
path: root/remotectl-with-empty-selinux.patch
diff options
context:
space:
mode:
Diffstat (limited to 'remotectl-with-empty-selinux.patch')
-rw-r--r--remotectl-with-empty-selinux.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/remotectl-with-empty-selinux.patch b/remotectl-with-empty-selinux.patch
new file mode 100644
index 000000000000..53e6eaa24a0d
--- /dev/null
+++ b/remotectl-with-empty-selinux.patch
@@ -0,0 +1,25 @@
+From 6246c16d0bed3ce63f3b598684849823d8661282 Mon Sep 17 00:00:00 2001
+From: Stef Walter <stefw@redhat.com>
+Date: Thu, 19 Nov 2015 12:24:25 +0100
+Subject: [PATCH] remotectl: Don't try to run chcon with an empty SELinux
+ context
+
+Closes #3186
+Reviewed-by: Peter <petervo@redhat.com>
+---
+ src/remotectl/certificate.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/remotectl/certificate.c b/src/remotectl/certificate.c
+index 9aacac9..45d5c15 100644
+--- a/src/remotectl/certificate.c
++++ b/src/remotectl/certificate.c
+@@ -128,6 +128,8 @@ ensure_certificate (const gchar *user,
+ goto out;
+ }
+
++ if (g_strcmp0 (selinux, "") == 0)
++ selinux = NULL;
+ if (selinux)
+ {
+ chcon_argv[3] = path;