]> source.dussan.org Git - tigervnc.git/commitdiff
SELinux: use /root/.vnc in file context specification 1426/head
authorZdenek Pytela <zpytela@redhat.com>
Mon, 7 Feb 2022 09:45:41 +0000 (10:45 +0100)
committerZdenek Pytela <zpytela@redhat.com>
Mon, 7 Feb 2022 09:45:41 +0000 (10:45 +0100)
Instead of HOME_ROOT/.vnc, /root/.vnc should be used
for user root's home to specify default file context
as HOME_ROOT actually means base for home dirs (usually /home).

unix/vncserver/selinux/vncsession.fc

index 6aaf4b1f4d296d0a891476a91cf6e59d8ca2d03f..bc81f8f25cd706c208a2365dcab4d6f604144c05 100644 (file)
@@ -18,7 +18,7 @@
 #
 
 HOME_DIR/\.vnc(/.*)?      gen_context(system_u:object_r:vnc_home_t,s0)
-HOME_ROOT/\.vnc(/.*)?      gen_context(system_u:object_r:vnc_home_t,s0)
+/root/\.vnc(/.*)?      gen_context(system_u:object_r:vnc_home_t,s0)
 
 /usr/sbin/vncsession                   --      gen_context(system_u:object_r:vnc_session_exec_t,s0)
 /usr/libexec/vncsession-start          --      gen_context(system_u:object_r:vnc_session_exec_t,s0)