28 lines
1.1 KiB
Diff
28 lines
1.1 KiB
Diff
diff --git a/unix/vncserver/tigervnc.pam b/unix/vncserver/tigervnc.pam
|
|
index dda76c49..b372c821 100644
|
|
--- a/unix/vncserver/tigervnc.pam
|
|
+++ b/unix/vncserver/tigervnc.pam
|
|
@@ -3,10 +3,7 @@
|
|
# THIS IS AN EXAMPLE CONFIGURATION
|
|
# MODIFY AS NEEDED FOR YOUR DISTRIBUTION
|
|
|
|
-# pam_selinux.so close should be the first session rule
|
|
--session required pam_selinux.so close
|
|
session required pam_loginuid.so
|
|
--session required pam_selinux.so open
|
|
session required pam_namespace.so
|
|
session optional pam_keyinit.so force revoke
|
|
session required pam_limits.so
|
|
diff --git a/unix/vncserver/vncserver@.service.in b/unix/vncserver/vncserver@.service.in
|
|
index 592ddb67..1ff14012 100644
|
|
--- a/unix/vncserver/vncserver@.service.in
|
|
+++ b/unix/vncserver/vncserver@.service.in
|
|
@@ -37,7 +37,6 @@ After=syslog.target network.target systemd-user-sessions.service
|
|
Type=forking
|
|
ExecStart=@CMAKE_INSTALL_FULL_LIBEXECDIR@/vncsession-start %i
|
|
PIDFile=/run/vncsession-%i.pid
|
|
-SELinuxContext=system_u:system_r:vnc_session_t:s0
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|