]> source.dussan.org Git - tigervnc.git/log
tigervnc.git
10 months agox0vncserver: Add support for systemd socket activation 1716/head
Mike Looijmans [Fri, 12 Jan 2024 08:24:48 +0000 (09:24 +0100)]
x0vncserver: Add support for systemd socket activation

systemd can pass in sockets as file descriptors 3 and beyond. Allows
the server to use socket activation.

When triggered by systemd, no other listening sockets (e.g. rfbport) will
be activated.

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
10 months agoSet Pixmap depths after creating visuals
Pierre Ossman [Wed, 10 Jan 2024 15:47:56 +0000 (16:47 +0100)]
Set Pixmap depths after creating visuals

This affects the ordering of visuals, which breaks some buggy
applications that assume the first visual is the root window visual.

10 months agoUpdate copyright year to 2024
Samuel Mannehed [Tue, 9 Jan 2024 13:27:51 +0000 (14:27 +0100)]
Update copyright year to 2024

10 months agoXvnc: do not use dup2() to create a file descriptor for -inetd option 1714/head
Jan Grulich [Mon, 8 Jan 2024 12:19:01 +0000 (13:19 +0100)]
Xvnc: do not use dup2() to create a file descriptor for -inetd option

Use dup() instead to get an available file descriptor to avoid hijacking
already existing descriptor.

Fixes #1709

10 months agoMerge branch 'master' of https://github.com/zmudc/tigervnc
Pierre Ossman [Thu, 28 Dec 2023 16:02:07 +0000 (17:02 +0100)]
Merge branch 'master' of https://github.com/zmudc/tigervnc

10 months agoMerge branch 'master' of https://github.com/LMattsson/tigervnc
Pierre Ossman [Thu, 28 Dec 2023 15:56:04 +0000 (16:56 +0100)]
Merge branch 'master' of https://github.com/LMattsson/tigervnc

10 months agoPrevent incorrect cmake usage
Pierre Ossman [Thu, 28 Dec 2023 08:39:08 +0000 (09:39 +0100)]
Prevent incorrect cmake usage

It's a reoccurring issue that users try to build individual components
by pointing cmake at a specific subdirectory, e.g. 'cmake vncviewer'.
CMake, unfortunately, has insufficient protection against this so we'll
need to add a manual check.

This commit only adds it to the most likely places for misuse so we
don't have to pollute every CMakeLists.txt.

11 months agoUpdate server configure example to RHEL 9 1704/head
Linn Mattsson [Mon, 11 Dec 2023 13:12:18 +0000 (14:12 +0100)]
Update server configure example to RHEL 9

Some of the flags have been removed and we don't need to consider 32-bit
libraries anymore.

11 months agoRemove unnecessary step from building the server
Linn Mattsson [Mon, 11 Dec 2023 13:09:17 +0000 (14:09 +0100)]
Remove unnecessary step from building the server

It seems this folder is created when building the vncviewer, which has
to be built before the server.

11 months agoClarify details about requirements in BUILDING.txt
Linn Mattsson [Mon, 11 Dec 2023 13:07:54 +0000 (14:07 +0100)]
Clarify details about requirements in BUILDING.txt

11 months agoAdd missing requirements to BUILDING.txt
Linn Mattsson [Mon, 11 Dec 2023 13:06:49 +0000 (14:06 +0100)]
Add missing requirements to BUILDING.txt

11 months agoMerge branch 'keysym' of github.com:CendioOssman/tigervnc
Pierre Ossman [Wed, 13 Dec 2023 11:37:16 +0000 (12:37 +0100)]
Merge branch 'keysym' of github.com:CendioOssman/tigervnc

11 months agoAutomatically generate keyucsmap.h 1705/head
Pierre Ossman [Tue, 12 Dec 2023 15:56:32 +0000 (16:56 +0100)]
Automatically generate keyucsmap.h

All the information we need is now available in keysymdef.h, so let's
get everything updated and in sync.

11 months agoMove Keysym/Unicode mapping table to separate file
Pierre Ossman [Tue, 12 Dec 2023 15:51:03 +0000 (16:51 +0100)]
Move Keysym/Unicode mapping table to separate file

Make it easier to see what's code and what's just a lot of data.

11 months agoMove dead/combining keys to separate table
Pierre Ossman [Tue, 12 Dec 2023 16:13:12 +0000 (17:13 +0100)]
Move dead/combining keys to separate table

This is a manually set up table specific for TigerVNC. For clarity,
separate it out from the general keysym/Unicode table.

11 months agoFix logging when no working VeNCrypt types
Pierre Ossman [Tue, 12 Dec 2023 14:57:05 +0000 (15:57 +0100)]
Fix logging when no working VeNCrypt types

Otherwise it will log that we chose the (invalid) type 0.

12 months agoReplace INITARGS with void in function parameter list 1698/head
Florian Weimer [Wed, 22 Nov 2023 11:41:53 +0000 (12:41 +0100)]
Replace INITARGS with void in function parameter list

Most compilers currently accept arbitrary identifiers in this place
and ignore then, but this is going to change and turn into an error.
(It prevents compilers from diagnosing misspelled type names,
and the resulting declaration is not a prototype, so no type
errors will be reported at call sites.)

12 months agoAdd option to run vncsession without forking and detaching 1651/head
Chuck Zmudzinski [Mon, 20 Nov 2023 17:07:27 +0000 (12:07 -0500)]
Add option to run vncsession without forking and detaching

Option is -D, which is what sshd uses for the same option.

Also add description of the new option to the vncsession
man page.

Tested on Void Linux using the new option, also tested on
Fedora without using the new option.

Resolves #1649

12 months agoMerge branch 'zrlee-compression-level' of https://github.com/adamhalim/tigervnc-suite
Pierre Ossman [Mon, 20 Nov 2023 12:20:46 +0000 (13:20 +0100)]
Merge branch 'zrlee-compression-level' of https://github.com/adamhalim/tigervnc-suite

12 months agoUse compressionLevel in ZRLEEncoder 1645/head
Adam Halim [Mon, 10 Jul 2023 09:15:33 +0000 (11:15 +0200)]
Use compressionLevel in ZRLEEncoder

This change makes the ZRLEEncoder respect a client's desired
compressionLevel. The ZlibLevel option is marked deprecated and removed
from the manpages.

12 months agoUpdate keysym header files
Pierre Ossman [Thu, 16 Nov 2023 15:36:15 +0000 (16:36 +0100)]
Update keysym header files

This make sure we have any new defines, in case we want to use them.

12 months agoAdd own keysym to name function
Pierre Ossman [Tue, 7 Dec 2021 19:46:20 +0000 (20:46 +0100)]
Add own keysym to name function

This is mainly a copy of XKeysymToString() from libX11. We've also added
a wrapper that still gives a string, even if there is no name for the
requested keysym.

This grows the binaries a bit, but not with any extreme amount so is
hopefully worth it to get better debug logging.

12 months agofix spelling error
ut004527 [Mon, 6 Nov 2023 09:55:34 +0000 (10:55 +0100)]
fix spelling error

12 months agoMerge pull request #1690 from LMattsson/LMattsson-patch-1 1692/head
linma (ThinLinc team) [Tue, 31 Oct 2023 14:02:55 +0000 (15:02 +0100)]
Merge pull request #1690 from LMattsson/LMattsson-patch-1

Clarify how to build server out-of-tree

12 months agoClarify how to build server out-of-tree 1690/head
linma (ThinLinc team) [Mon, 30 Oct 2023 10:10:05 +0000 (11:10 +0100)]
Clarify how to build server out-of-tree

12 months agoMerge branch 'casantos-rhbz_2233204-b' of https://github.com/casantos/tigervnc
Pierre Ossman [Fri, 27 Oct 2023 12:58:30 +0000 (14:58 +0200)]
Merge branch 'casantos-rhbz_2233204-b' of https://github.com/casantos/tigervnc

12 months agoUpdate Russian translation
Yuri Kozlov [Fri, 20 Oct 2023 15:09:00 +0000 (18:09 +0300)]
Update Russian translation

13 months agoFix description of "%u" in manual pages. 1682/head
Carlos Santos [Wed, 4 Oct 2023 14:40:56 +0000 (11:40 -0300)]
Fix description of "%u" in manual pages.

We user the real, not the effective user ID, to check if the user is
allowed to log in with the "Plain" security types. Otherwise it would be
necessary to log in as root when Xvnc is installed with the set-user-id
bit on.

Signed-off-by: Carlos Santos <casantos@redhat.com>
13 months agoSupport the "%u" username alias in PlainUsers 1671/head
Carlos Santos [Tue, 3 Oct 2023 18:00:02 +0000 (15:00 -0300)]
Support the "%u" username alias in PlainUsers

This permits to enable PAM for the effective user of the Xvnc process by
adding this to ~/.vnc/config or /etc/tigervnc/vncserver-config-defaults:

   SecurityTypes=TLSPlain
   PlainUsers=%u

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2233204
Signed-off-by: Carlos Santos <casantos@redhat.com>
13 months agoEnforce accelerators in translations
Pierre Ossman [Fri, 29 Sep 2023 08:13:04 +0000 (10:13 +0200)]
Enforce accelerators in translations

Make sure we don't overlook missing accelerators in the translations
again.

13 months agoFix missing/wrong menu accelerators
Pierre Ossman [Fri, 29 Sep 2023 08:12:17 +0000 (10:12 +0200)]
Fix missing/wrong menu accelerators

They were unfortunately omitted here and there for some languages.

13 months agoUpdate Turkish translation
Volkan Gezer [Fri, 8 Sep 2023 20:51:00 +0000 (22:51 +0200)]
Update Turkish translation

14 months agoCompletely ignore server clipboard when unfocused
Pierre Ossman [Mon, 11 Sep 2023 11:05:25 +0000 (13:05 +0200)]
Completely ignore server clipboard when unfocused

We can get races with clipboard managers in the server that is very
confusing to the user.

When the clipboard changes locally, we tell the server to drop the old
clipboard (as it is now lost). But we don't send over the new clipboard
until we get focus again, in order to not leak more data than necessary.
This causes some clibpoard managers to take over ownership in order to
avoid an empty clipboard. And this takes precedence over the new client
clipboard as it happened later. Effectively reverting the clipboard the
user sees.

Avoid all of this by simply ignoring the server when we don't have
focus. This is likely what users expect anyway as they expect their
currently focused application to control the clipboard, not vncviewer in
the background.

14 months agoMore graceful handling of disabled listeners
Pierre Ossman [Fri, 8 Sep 2023 12:31:31 +0000 (14:31 +0200)]
More graceful handling of disabled listeners

Don't assume a lack of TCP listeners means the server will be
unreachable. There might be other methods of access, so let the higher
levels do that sanity check instead.

14 months agoOnly set up TCP filter for TCP connections
Pierre Ossman [Fri, 8 Sep 2023 12:57:04 +0000 (14:57 +0200)]
Only set up TCP filter for TCP connections

This will not do the correct thing for Unix sockets.

14 months agoImprove log message when mapping keysyms
Pierre Ossman [Wed, 23 Aug 2023 14:51:19 +0000 (16:51 +0200)]
Improve log message when mapping keysyms

It was a poor choice of words to call these keysyms "unknown" as they
are likely perfectly normal keysyms, they just cannot be found in the
currently loaded keyboard layout. This log message has confused users,
so let's get rid of the "unknown" part.

We already use the verb "add" heavily in the other log messages, so
let's keep that rather than switch to some for of "map".

15 months agoMerge branch 'ryandesign-NSHighResolutionCapable' of https://github.com/ryandesign...
Pierre Ossman [Mon, 21 Aug 2023 15:31:40 +0000 (17:31 +0200)]
Merge branch 'ryandesign-NSHighResolutionCapable' of https://github.com/ryandesign/tigervnc

15 months agoChange accelerator for "Disconnect" entry
Pierre Ossman [Mon, 21 Aug 2023 09:03:10 +0000 (11:03 +0200)]
Change accelerator for "Disconnect" entry

Using "c" is in conflict the the "Ctrl" entry, so we need to pick
something else here.

This was a regression introduced in 44b085a.

15 months agoMove custom FLTK box types to valid range
Pierre Ossman [Thu, 17 Aug 2023 12:46:04 +0000 (14:46 +0200)]
Move custom FLTK box types to valid range

FLTK only allows 256 different box types, but it doesn't actually check
this when registering new ones.

Move our custom types to a valid range, and add an assert for good
measure to make sure we don't overflow FLTK's internal structures.

15 months agoAdd missing accelerator in Hebrew translation
Yaron Shahrabani [Wed, 16 Aug 2023 21:00:00 +0000 (00:00 +0300)]
Add missing accelerator in Hebrew translation

15 months agoAdd missing accelerator to Korean translation
JiYoon Kwon [Tue, 15 Aug 2023 14:51:00 +0000 (23:51 +0900)]
Add missing accelerator to Korean translation

15 months agoAutomatically respect changes in LINGUAS
Pierre Ossman [Tue, 15 Aug 2023 14:47:14 +0000 (16:47 +0200)]
Automatically respect changes in LINGUAS

Since the contents of the LINGUAS file affects which targets are
created, we must tell CMake to reconfigure things if this file changes.

15 months agoUpdate Korean translation
JiYoon Kwon [Tue, 15 Aug 2023 13:54:00 +0000 (22:54 +0900)]
Update Korean translation

15 months agoUpdate French translation
Stéphane Aulery [Tue, 15 Aug 2023 10:33:00 +0000 (12:33 +0200)]
Update French translation

15 months agoAvoid legacy C function definitions
Pierre Ossman [Tue, 15 Aug 2023 09:24:11 +0000 (11:24 +0200)]
Avoid legacy C function definitions

These aren't supported in C2x, and clang will already now complain.

15 months agoRemove stray space in format specifier
Pierre Ossman [Tue, 15 Aug 2023 08:59:26 +0000 (10:59 +0200)]
Remove stray space in format specifier

15 months agoMake NSHighResolutionCapable a Boolean in Info.plist.in 1655/head
Ryan Schmidt [Sat, 12 Aug 2023 02:09:22 +0000 (21:09 -0500)]
Make NSHighResolutionCapable a Boolean in Info.plist.in

16 months agoMerge pull request #1648 from TigerVNC/copyright
Samuel Mannehed [Thu, 20 Jul 2023 10:52:44 +0000 (12:52 +0200)]
Merge pull request #1648 from TigerVNC/copyright

Update copyright year to 2023

16 months agoUpdate copyright year to 2023 1648/head
Samuel Mannehed [Thu, 20 Jul 2023 10:32:58 +0000 (12:32 +0200)]
Update copyright year to 2023

16 months agoMerge branch 'newui-lite' of https://github.com/CendioOssman/tigervnc
Pierre Ossman [Fri, 14 Jul 2023 12:56:03 +0000 (14:56 +0200)]
Merge branch 'newui-lite' of https://github.com/CendioOssman/tigervnc

16 months agoUse modern UI colors 1646/head
Pierre Ossman [Fri, 14 Jan 2022 18:51:47 +0000 (19:51 +0100)]
Use modern UI colors

Follow the colors that modern desktops use when it comes to background,
text and selections.

16 months agoWorkaround for broken fl_arc()/fl_pie()
Pierre Ossman [Fri, 14 Jul 2023 11:10:27 +0000 (13:10 +0200)]
Workaround for broken fl_arc()/fl_pie()

There is something broken with these FLTK draw routines on Windows. They
leave gaps at the start and end of the arc/pie rather than filling the
whole specified span. So we need to nudge the numbers a bit to work
around this.

16 months agoApply custom theme to FLTK
Pierre Ossman [Fri, 14 Jul 2023 08:08:25 +0000 (10:08 +0200)]
Apply custom theme to FLTK

Inspired by modern Windows appearance, and to some extent macOS. They
have flat boxes and use white, or very light, colors for interactive
elements. Unfortunately we can't directly control the colors of
widgets, so instead we just lighten everything that uses this box type.

GNOME uses a different design, both their older and newer style. But UI
look is less consistent on Linux, so hopefully our new look is decent
enough there as well.

16 months agoFix correct background in Fl_Input_Choice
Pierre Ossman [Fri, 14 Jul 2023 08:06:49 +0000 (10:06 +0200)]
Fix correct background in Fl_Input_Choice

Work around a bug in Fl_Input_Choice where it forgets to set the proper
"input background" on some parts.

16 months agoRespect selection color in monitor widget
Pierre Ossman [Fri, 14 Jan 2022 18:49:12 +0000 (19:49 +0100)]
Respect selection color in monitor widget

We should have a consistent color set over all widgets.

16 months agoDon't tag up gettext's *wprintf() functions
Pierre Ossman [Thu, 6 Jul 2023 07:17:53 +0000 (09:17 +0200)]
Don't tag up gettext's *wprintf() functions

gcc doesn't support -Wformat for the wide format versions of printf()
and friends yet:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38308

Do what glibc does and have some commented out tags to show future
intent.

16 months agoUnbreak -Wformat warnings when gettext is used
Pierre Ossman [Wed, 5 Jul 2023 14:23:58 +0000 (16:23 +0200)]
Unbreak -Wformat warnings when gettext is used

gettext replaces all *printf() functions on platforms that don't fully
conform to the POSIX behaviour. Unfortunately, gettext fails to tag
these replacement functions properly so that -Wformat can still do its
thing.

Resolve this by adding a redudant declaration of the relevant functions,
with the attribute tagging in place.

16 months agoUse smaller, stable, int for history index
Pierre Ossman [Wed, 5 Jul 2023 14:22:35 +0000 (16:22 +0200)]
Use smaller, stable, int for history index

The size of size_t depends on the architecture, so we need to have
different conversion to and from strings. But we don't really need that
range, so avoid the issue by using a standard integer size.

16 months agoMerge branch 'hostexception' of https://github.com/CendioOssman/tigervnc
Pierre Ossman [Wed, 5 Jul 2023 12:31:02 +0000 (14:31 +0200)]
Merge branch 'hostexception' of https://github.com/CendioOssman/tigervnc

16 months agoMore logging for server cert exceptions 1643/head
Pierre Ossman [Wed, 5 Jul 2023 09:23:33 +0000 (11:23 +0200)]
More logging for server cert exceptions

Let's log a bit more details when we need to deal with certificate
exceptions to make it easier to debug things.

16 months agoAllow exception for cert hostname mismatch
Pierre Ossman [Wed, 5 Jul 2023 09:19:48 +0000 (11:19 +0200)]
Allow exception for cert hostname mismatch

The browsers let you add an exception for this case, so we should as
well.

16 months agoImprove reporting of certificate errors
Pierre Ossman [Wed, 5 Jul 2023 09:10:08 +0000 (11:10 +0200)]
Improve reporting of certificate errors

GnuTLS can help use translate certificate issues in to user presentable
strings, so let's clean up that reporting.

16 months agoAllow exception for weak certificate algorithms
Pierre Ossman [Wed, 5 Jul 2023 09:07:31 +0000 (11:07 +0200)]
Allow exception for weak certificate algorithms

The browsers let you add an exception for this case, so we should as
well.

16 months agoRemove double expired certificate prompts
Pierre Ossman [Wed, 5 Jul 2023 08:43:47 +0000 (10:43 +0200)]
Remove double expired certificate prompts

This should have been done in 5f46d55.

16 months agoAllow exception for not yet activated certificates
Pierre Ossman [Wed, 5 Jul 2023 08:36:02 +0000 (10:36 +0200)]
Allow exception for not yet activated certificates

The browsers let you add an exception for this case, so we should as
well.

16 months agoMake sure we handle all certificate issues
Pierre Ossman [Wed, 5 Jul 2023 08:22:42 +0000 (10:22 +0200)]
Make sure we handle all certificate issues

We don't want to proceed unless we've made sure the user has approved
the issues with the certificate. So add an extra check that all status
flags have been dealt with.

16 months agoHandle GNUTLS_CERT_INVALID in TOFU code
Pierre Ossman [Wed, 5 Jul 2023 08:21:56 +0000 (10:21 +0200)]
Handle GNUTLS_CERT_INVALID in TOFU code

GnuTLS should hopefully never set just this flag, but let's be fully
prepared for all scenarios.

16 months agoRemove old GnuTLS compatibility code
Pierre Ossman [Wed, 5 Jul 2023 07:32:42 +0000 (09:32 +0200)]
Remove old GnuTLS compatibility code

We've required GnuTLS 3.x for a long time, so this code has been dead
for a while.

16 months agoFix WM_CLASS in desktop file
Pierre Ossman [Mon, 3 Jul 2023 08:42:39 +0000 (10:42 +0200)]
Fix WM_CLASS in desktop file

The WM_CLASS we set on all windows is just "vncviewer", so that it
matches the name of the .desktop file, which is what GNOME expects.

16 months agoMerge branch 'types2' of https://github.com/CendioOssman/tigervnc
Pierre Ossman [Fri, 30 Jun 2023 20:33:47 +0000 (22:33 +0200)]
Merge branch 'types2' of https://github.com/CendioOssman/tigervnc

16 months agoDon't allow surrugate code points in UTF-8 1640/head
Pierre Ossman [Sat, 18 Mar 2023 13:59:27 +0000 (14:59 +0100)]
Don't allow surrugate code points in UTF-8

These are not valid outside of UTF-16 so seeing them in a UTF-8 sequence
means that something is wrong with that sequence. Best to filter them
out rather than letting them propagate and have unknown effects.

16 months agoClean up string encoding handling
Pierre Ossman [Sat, 18 Mar 2023 12:53:26 +0000 (13:53 +0100)]
Clean up string encoding handling

We should handle this in the low-level protocol code as much as possible
to avoid mistakes. This way the rest of the code can assume that strings
are always UTF-8 with \n line endings.

16 months agoEmulate corking when TCP_CORK is missing
Pierre Ossman [Wed, 28 Jun 2023 14:03:30 +0000 (16:03 +0200)]
Emulate corking when TCP_CORK is missing

If we can't rely on the OS to handle corking for us, then we need to
enable our own handling of it.

16 months agoMove where -nodefaultlibs is specified
Pierre Ossman [Wed, 21 Jun 2023 11:58:57 +0000 (13:58 +0200)]
Move where -nodefaultlibs is specified

The previous method isn't compatible with CMake's try_compile() as it
will respect CMAKE_EXE_LINKER_FLAGS, but not CMAKE_C_LINK_EXECUTABLE and
friends. This results in the default libraries being completely missing,
and the compile test failing.

17 months agoDrop xorg-x11-font-utils requirement for RHEL 9
Pierre Ossman [Tue, 20 Jun 2023 14:29:47 +0000 (16:29 +0200)]
Drop xorg-x11-font-utils requirement for RHEL 9

They've patched their Xorg sources to no longer require this package.

17 months agoMerge branch 'noxtest' of https://github.com/CendioOssman/tigervnc
Pierre Ossman [Thu, 15 Jun 2023 07:26:38 +0000 (09:26 +0200)]
Merge branch 'noxtest' of https://github.com/CendioOssman/tigervnc

17 months agoFix missing XRandR build 1636/head
Pierre Ossman [Wed, 14 Jun 2023 15:13:21 +0000 (17:13 +0200)]
Fix missing XRandR build

Make sure we can actually build without XRandR libraries.

17 months agoFix missing XFixes build
Pierre Ossman [Wed, 14 Jun 2023 15:10:44 +0000 (17:10 +0200)]
Fix missing XFixes build

Make sure we can actually build without XFixes libraries.

17 months agoFix missing XTest build
Pierre Ossman [Wed, 14 Jun 2023 15:07:17 +0000 (17:07 +0200)]
Fix missing XTest build

Make sure we can actually build without XTest libraries.

17 months agoRemove unneeded "using namespace"
Pierre Ossman [Tue, 13 Jun 2023 07:37:04 +0000 (09:37 +0200)]
Remove unneeded "using namespace"

The need for these must have got lost somewhere in the type cleanup.

19 months agoAvoid wildcards in cmake rules
Pierre Ossman [Mon, 17 Apr 2023 14:56:12 +0000 (16:56 +0200)]
Avoid wildcards in cmake rules

They are not fully supported and break with some backends, like Ninja.

19 months agoHandle REQUIRED in our CMake "find" modules
Pierre Ossman [Mon, 17 Apr 2023 13:55:17 +0000 (15:55 +0200)]
Handle REQUIRED in our CMake "find" modules

These are expected to abort if they fail to find the relevant software
and "REQUIRED" is specified.

19 months agoPrefer target_include_directories()
Pierre Ossman [Thu, 30 Mar 2023 19:00:12 +0000 (21:00 +0200)]
Prefer target_include_directories()

It is more specific, and it properly sets up propagation when include
directories also need to be used further down a dependency chain.

19 months agoAdd all common inter-dependencies
Pierre Ossman [Fri, 24 Mar 2023 18:34:27 +0000 (19:34 +0100)]
Add all common inter-dependencies

This is important in case there are build flags that need to propagate
between libraries for things to build correctly.

19 months agoInclude Debian debug files in artefacts
Pierre Ossman [Thu, 30 Mar 2023 19:25:02 +0000 (21:25 +0200)]
Include Debian debug files in artefacts

19 months agoRaise Debian packaging version
Pierre Ossman [Thu, 30 Mar 2023 19:20:22 +0000 (21:20 +0200)]
Raise Debian packaging version

Get in sync with what's recommended these days.

19 months agoDon't prompt when installing dependencies
Pierre Ossman [Thu, 30 Mar 2023 12:43:30 +0000 (14:43 +0200)]
Don't prompt when installing dependencies

This is fully automated, so we can't let anything wait for user input or
the job will just hang.

19 months agoRemove unnecessary ; from build scripts
Pierre Ossman [Thu, 30 Mar 2023 12:56:46 +0000 (14:56 +0200)]
Remove unnecessary ; from build scripts

The newlines aren't stripped, so they are quite sufficient separators
for the commands.

19 months agoLimit GitHub action run times
Pierre Ossman [Sat, 25 Mar 2023 12:12:13 +0000 (13:12 +0100)]
Limit GitHub action run times

We don't want a broken job to consume our entire quota, so make sure
things are killed if the stray too far from a normal runtime.

19 months agoUpdate copyright year in README
Samuel Mannehed [Fri, 24 Mar 2023 12:16:55 +0000 (13:16 +0100)]
Update copyright year in README

20 months agoConsistently use uint8_t for data buffers
Pierre Ossman [Thu, 2 Mar 2023 13:33:50 +0000 (14:33 +0100)]
Consistently use uint8_t for data buffers

These will always be byte streams at heart, so let's try to keep them
with a proper type. Should make it clearer how they will be used.

20 months agoDetect leaving window on zaphod systems
Pierre Ossman [Wed, 8 Mar 2023 17:15:33 +0000 (18:15 +0100)]
Detect leaving window on zaphod systems

The coordinates we get are relative the root window of each screen, so
we can only trust them if we are on the same screen. So let's explicitly
check that we are still getting events from the expected screen by
checking the root window field of the event.

20 months agoMerge branch 'types' of https://github.com/CendioOssman/tigervnc
Pierre Ossman [Thu, 2 Mar 2023 10:09:57 +0000 (11:09 +0100)]
Merge branch 'types' of https://github.com/CendioOssman/tigervnc

20 months agoMerge branch 'vncsession-create-homedir' of https://github.com/zpytela/tigervnc
Pierre Ossman [Tue, 28 Feb 2023 15:08:41 +0000 (16:08 +0100)]
Merge branch 'vncsession-create-homedir' of https://github.com/zpytela/tigervnc

20 months agoMerge branch 'master-clipboard-check-state-before-access' of https://github.com/MarkM...
Pierre Ossman [Tue, 28 Feb 2023 15:01:46 +0000 (16:01 +0100)]
Merge branch 'master-clipboard-check-state-before-access' of https://github.com/MarkMielke/tigervnc

20 months agoThrow exception instead on bad access check
Pierre Ossman [Tue, 28 Feb 2023 15:00:15 +0000 (16:00 +0100)]
Throw exception instead on bad access check

An assert will kill the entire server, which is overly harsh when there
is a problem with a single connection. Instead, throw an exception which
will just disconnect that specific client.

20 months agoUpdate Serbian translation
Мирослав Николић [Sun, 26 Feb 2023 11:27:00 +0000 (12:27 +0100)]
Update Serbian translation

21 months agoSELinux: Allow vncsession create ~/.vnc directory 1602/head
Zdenek Pytela [Mon, 16 Jan 2023 11:35:40 +0000 (12:35 +0100)]
SELinux: Allow vncsession create ~/.vnc directory

Addresses the following AVC denial:

type=PROCTITLE msg=audit(01/12/2023 02:58:12.648:696) : proctitle=/usr/sbin/vncsession fedora :1
type=PATH msg=audit(01/12/2023 02:58:12.648:696) : item=1 name=/home/fedora/.vnc nametype=CREATE cap_fp=none cap_fi=none cap_fe=0 cap_fver=0 cap_frootid=0
type=PATH msg=audit(01/12/2023 02:58:12.648:696) : item=0 name=/home/fedora/ inode=262145 dev=fc:02 mode=dir,700 ouid=fedora ogid=fedora rdev=00:00 obj=unconfined_u:object_r:user_home_dir_t:s0 nametype=PARENT cap_fp=none cap_fi=none cap_fe=0 cap_fver=0 cap_frootid=0
type=CWD msg=audit(01/12/2023 02:58:12.648:696) : cwd=/home/fedora
type=SYSCALL msg=audit(01/12/2023 02:58:12.648:696) : arch=x86_64 syscall=mkdir success=no exit=EACCES(Permission denied) a0=0x7fff47d52540 a1=0755 a2=0x0 a3=0x0 items=2 ppid=2869 pid=2880 auid=fedora uid=fedora gid=fedora euid=fedora suid=fedora fsuid=fedora egid=fedora sgid=fedora fsgid=fedora tty=(none) ses=8 comm=vncsession exe=/usr/sbin/vncsession subj=system_u:system_r:vnc_session_t:s0 key=(null)
type=AVC msg=audit(01/12/2023 02:58:12.648:696) : avc:  denied  { create } for  pid=2880 comm=vncsession name=.vnc scontext=system_u:system_r:vnc_session_t:s0 tcontext=system_u:object_r:vnc_home_t:s0 tclass=dir permissive=0

Resolves: rhbz#2143704

21 months agoVNCSConnectionST clipboard functions should check state before access. 1601/head
Mark Mielke [Mon, 20 Feb 2023 05:38:52 +0000 (00:38 -0500)]
VNCSConnectionST clipboard functions should check state before access.

Clipboard functions may run on connections that are not yet at
RFBSTATE_NORMAL. Due to recent hardening of the accessCheck() function,
it is important to validate that the state is RFBSTATE_NORMAL before
calling accessCheck().

Fixes #1599.

21 months agoMerge "Pixel" type in to PixelFormat header 1587/head
Pierre Ossman [Sat, 18 Feb 2023 14:58:51 +0000 (15:58 +0100)]
Merge "Pixel" type in to PixelFormat header

It's a type specific to that class, so let's keep them close for
clarity.