x11-common: If restorecon exists, run it

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2016-07-20 19:58:42 +02:00
parent 329af172de
commit 5b81d14e51
+3
View File
@@ -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 = {