diff --git a/tigervnc-allow-use-of-passwords-longer-than-eight-characters.patch b/tigervnc-allow-use-of-passwords-longer-than-eight-characters.patch new file mode 100644 index 0000000..108a3c0 --- /dev/null +++ b/tigervnc-allow-use-of-passwords-longer-than-eight-characters.patch @@ -0,0 +1,14 @@ +diff --git a/unix/vncpasswd/vncpasswd.cxx b/unix/vncpasswd/vncpasswd.cxx +index 466aa1a2..197d60dc 100644 +--- a/unix/vncpasswd/vncpasswd.cxx ++++ b/unix/vncpasswd/vncpasswd.cxx +@@ -147,8 +147,7 @@ static std::vector readpassword() { + } + + if (first.size() > 8) { +- fprintf(stderr,"Password should not be greater than 8 characters\nBecause only 8 valid characters are used - try again\n"); +- continue; ++ fprintf(stderr,"Password should not be greater than 8 characters\nBecause only 8 valid characters are used\n"); + } + + #ifdef HAVE_PWQUALITY diff --git a/tigervnc.spec b/tigervnc.spec index 264165d..85b50df 100644 --- a/tigervnc.spec +++ b/tigervnc.spec @@ -5,7 +5,7 @@ Name: tigervnc Version: 1.15.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A TigerVNC remote display system %global _hardened_build 1 @@ -27,6 +27,8 @@ Patch1: tigervnc-use-gnome-as-default-session.patch Patch2: tigervnc-vncsession-restore-script-systemd-service.patch # https://github.com/TigerVNC/tigervnc/pull/1792 Patch3: tigervnc-add-option-allowing-to-connect-only-user-owning-session.patch +# Only warn about passwords longer than 8 characters, but allow them to be used as in the past +Patch4: tigervnc-allow-use-of-passwords-longer-than-eight-characters.patch # Upstream patches Patch50: tigervnc-add-selinux-policy-rules-allowing-create-dirs-under-root-dir.patch @@ -207,6 +209,7 @@ popd %patch -P1 -p1 -b .use-gnome-as-default-session %patch -P2 -p1 -b .vncsession-restore-script-systemd-service %patch -P3 -p1 -b .add-option-allowing-to-connect-only-user-owning-session +%patch -P4 -p1 -b .allow-use-of-passwords-longer-than-eight-characters # Upstream patches %patch -P50 -p1 -b .add-selinux-policy-rules-allowing-create-dirs-under-root-dir @@ -395,6 +398,10 @@ fi %ghost %verify(not md5 size mode mtime) %{_sharedstatedir}/selinux/%{selinuxtype}/active/modules/200/%{modulename} %changelog +* Wed Apr 30 2025 Jan Grulich - 1.15.0-3 +- Only warn about 8 characters limit, but let it proceed + Resolves: RHEL-89432 + * Wed Apr 16 2025 Jan Grulich - 1.15.0-2 - Fix inetd mode not working Resolves: RHEL-86511