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