]> source.dussan.org Git - tigervnc.git/commitdiff
Use /run instead of /var/run which is just a symlink 1115/head
authorJan Grulich <jgrulich@redhat.com>
Tue, 29 Sep 2020 11:37:16 +0000 (13:37 +0200)
committerJan Grulich <jgrulich@redhat.com>
Tue, 29 Sep 2020 12:12:53 +0000 (14:12 +0200)
unix/vncserver/selinux/vncsession.fc
unix/vncserver/vncserver@.service.in
unix/vncserver/vncsession.c

index 121cdd2376e7fe06b3947f5b212490b3165b8fa3..ae768baa4f002c1ab855de6b31a523d15c1aac35 100644 (file)
@@ -23,4 +23,4 @@ HOME_ROOT/\.vnc(/.*)?      gen_context(system_u:object_r:xdm_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)
 
-/var/run/vncsession-:[0-9]*\.pid       --      gen_context(system_u:object_r:vnc_session_var_run_t,s0)
+/run/vncsession-:[0-9]*\.pid   --      gen_context(system_u:object_r:vnc_session_var_run_t,s0)
index 584ecf4b1c585c4a879554f4a2fc871d823598a0..5624dff76ff1436a5020525bec369bb75878496f 100644 (file)
@@ -36,7 +36,7 @@ After=syslog.target network.target
 [Service]
 Type=forking
 ExecStart=@CMAKE_INSTALL_FULL_LIBEXECDIR@/vncsession-start %i
-PIDFile=/var/run/vncsession-%i.pid
+PIDFile=/run/vncsession-%i.pid
 SELinuxContext=system_u:system_r:vnc_session_t:s0
 
 [Install]
index 3e0c98f0fb268745a15a3a4771a681cf6a7ca831..2b47f5f55d555e664743c7ae5ef4f18d7a79d3cd 100644 (file)
@@ -543,7 +543,7 @@ main(int argc, char **argv)
     }
 
     snprintf(pid_file, sizeof(pid_file),
-             "/var/run/vncsession-%s.pid", display);
+             "/run/vncsession-%s.pid", display);
     f = fopen(pid_file, "w");
     if (f == NULL) {
         syslog(LOG_ERR, "Failure creating pid file \"%s\": %s",