Blame SOURCES/tigervnc-root-user-selinux-context.patch

2ce8eb
From faf81b4b238e24fe29eb53f885a25367e212dd7b Mon Sep 17 00:00:00 2001
2ce8eb
From: Zdenek Pytela <zpytela@redhat.com>
2ce8eb
Date: Mon, 7 Feb 2022 10:45:41 +0100
2ce8eb
Subject: [PATCH] SELinux: use /root/.vnc in file context specification
2ce8eb
2ce8eb
Instead of HOME_ROOT/.vnc, /root/.vnc should be used
2ce8eb
for user root's home to specify default file context
2ce8eb
as HOME_ROOT actually means base for home dirs (usually /home).
2ce8eb
---
2ce8eb
 unix/vncserver/selinux/vncsession.fc | 2 +-
2ce8eb
 1 file changed, 1 insertion(+), 1 deletion(-)
2ce8eb
2ce8eb
diff --git a/unix/vncserver/selinux/vncsession.fc b/unix/vncserver/selinux/vncsession.fc
2ce8eb
index 6aaf4b1f4..bc81f8f25 100644
2ce8eb
--- a/unix/vncserver/selinux/vncsession.fc
2ce8eb
+++ b/unix/vncserver/selinux/vncsession.fc
2ce8eb
@@ -18,7 +18,7 @@
2ce8eb
 #
2ce8eb
2ce8eb
 HOME_DIR/\.vnc(/.*)?      gen_context(system_u:object_r:vnc_home_t,s0)
2ce8eb
-HOME_ROOT/\.vnc(/.*)?      gen_context(system_u:object_r:vnc_home_t,s0)
2ce8eb
+/root/\.vnc(/.*)?      gen_context(system_u:object_r:vnc_home_t,s0)
2ce8eb
2ce8eb
 /usr/sbin/vncsession			--	gen_context(system_u:object_r:vnc_session_exec_t,s0)
2ce8eb
 /usr/libexec/vncsession-start		--	gen_context(system_u:object_r:vnc_session_exec_t,s0)