Author: renodr
Date: Wed Oct 21 20:13:34 2020
New Revision: 4209
Log:
Add TigerVNC Configuration Patch
Added:
trunk/tigervnc/tigervnc-1.11.0-configuration_fixes-1.patch
Added: trunk/tigervnc/tigervnc-1.11.0-configuration_fixes-1.patch
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ trunk/tigervnc/tigervnc-1.11.0-configuration_fixes-1.patch Wed Oct 21
20:13:34 2020 (r4209)
@@ -0,0 +1,56 @@
+Submitted By: Douglas R. Reno <renodr at linuxfromscratch dot org>
+Date: 2020-10-21
+Initial Package Version: 1.11.0
+Upstream Status: Unknown (BLFS Specific)
+Origin: Self
+Description: Removes the SELinux requirement from the systemd unit,
+ changes the PAM file to be compatible with LFS, and
+ modifies the search path in /usr/libexec/vncserver
+ to work with an Xsession installed in
+ /etc/X11/tigervnc.
+
+diff -Naurp tigervnc-1.11.0.orig/unix/vncserver/tigervnc.pam
tigervnc-1.11.0/unix/vncserver/tigervnc.pam
+--- tigervnc-1.11.0.orig/unix/vncserver/tigervnc.pam 2020-09-08
07:16:08.000000000 -0500
++++ tigervnc-1.11.0/unix/vncserver/tigervnc.pam 2020-10-21
21:01:57.838565149 -0500
+@@ -1,11 +1,10 @@
+-#%PAM-1.0
+-# pam_selinux.so close should be the first session rule
+--session required pam_selinux.so close
++# Begin /etc/pam.d/tigervnc
++
+ 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
+--session optional pam_systemd.so
++session optional pam_systemd.so
+ session required pam_unix.so
+--session optional pam_reauthorize.so prepare
++
++# End /etc/pam.d/tigervnc
+diff -Naurp tigervnc-1.11.0.orig/unix/vncserver/vncserver.in
tigervnc-1.11.0/unix/vncserver/vncserver.in
+--- tigervnc-1.11.0.orig/unix/vncserver/vncserver.in 2020-09-08
07:16:08.000000000 -0500
++++ tigervnc-1.11.0/unix/vncserver/vncserver.in 2020-10-21
21:04:41.342563348 -0500
+@@ -438,7 +438,7 @@ sub SanityCheck
+ die "$prog: couldn't find \"$cmd\" on your PATH.\n";
+ }
+
+- foreach $cmd ("/etc/X11/xinit/Xsession", "/etc/X11/Xsession") {
++ foreach $cmd ("/etc/X11/xinit/Xsession", "/etc/X11/Xsession",
"/etc/X11/tigervnc/Xsession") {
+ if (-x "$cmd") {
+ $Xsession = $cmd;
+ last;
+diff -Naurp tigervnc-1.11.0.orig/unix/vncserver/[email protected]
tigervnc-1.11.0/unix/vncserver/[email protected]
+--- tigervnc-1.11.0.orig/unix/vncserver/[email protected] 2020-09-08
07:16:08.000000000 -0500
++++ tigervnc-1.11.0/unix/vncserver/[email protected] 2020-10-21
21:02:16.532564943 -0500
+@@ -36,8 +36,7 @@ After=syslog.target network.target
+ [Service]
+ Type=forking
+ ExecStart=@CMAKE_INSTALL_FULL_LIBEXECDIR@/vncsession-start %i
+-PIDFile=/var/run/vncsession-%i.pid
+-SELinuxContext=system_u:system_r:vnc_session_t:s0
++PIDFile=/run/vncsession-%i.pid
+
+ [Install]
+ WantedBy=multi-user.target
--
http://lists.linuxfromscratch.org/listinfo/patches
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page