From 5b81d14e518306ab6d751a840d2fc48adf9fa815 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Wed, 20 Jul 2016 19:58:42 +0200 Subject: [PATCH] x11-common: If restorecon exists, run it Signed-off-by: Joachim Nilsson --- plugins/x11-common.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/x11-common.c b/plugins/x11-common.c index 6dbbeca7..9b9cbe9a 100644 --- a/plugins/x11-common.c +++ b/plugins/x11-common.c @@ -51,6 +51,9 @@ static void setup(void *UNUSED(arg)) makedir("/tmp/.X11-unix", 01777); makedir("/tmp/.ICE-unix", 01777); + + if (fexist("/sbin/restorecon")) + run("/sbin/restorecon /tmp/.ICE-unix /tmp/.X11-unix"); } static plugin_t plugin = {