Browse Source

Merge branch 'systemd' of https://github.com/grulja/tigervnc

tags/v1.11.90
Pierre Ossman 3 years ago
parent
commit
90019e6104

+ 1
- 1
unix/vncserver/selinux/vncsession.fc View 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)

+ 1
- 1
unix/vncserver/vncserver@.service.in View 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]

+ 1
- 1
unix/vncserver/vncsession.c View 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",

Loading…
Cancel
Save