aboutsummaryrefslogtreecommitdiffstats
path: root/unix
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | Let user know that a view-only password is not usedJan Grulich2021-05-251-0/+2
| |/ /
* | | Refer to HOWTO.md from config commentsPierre Ossman2021-06-072-2/+4
| | | | | | | | | | | | Give people a chance to know about the documentation.
* | | Include "session" in examples instead of "desktop"Pierre Ossman2021-06-073-3/+2
|/ / | | | | | | | | | | It's almost mandatory to specify "session", but fairly rare to need to set "desktop", so let's tweak the examples to avoid confusion and mistakes.
* / SELinux: Add missing compression and install policy to correct directoryJan Grulich2021-05-171-5/+8
|/
* Avoid absolute path for vncserver.usersPierre Ossman2021-05-031-3/+3
| | | | | Build flags control where this file ends up, so avoid assuming a specific path in the HOWTO.
* Reflow HOWTO.md to 72 columnsPierre Ossman2021-05-031-51/+55
| | | | | The line width was very inconsitent in this file, so standardise on the common 72 characters.
* Maintain static screen DPI on resizePierre Ossman2021-04-082-13/+16
| | | | | | Trying to dynamically track the DPI did not really work as we'd start accumulating errors and eventually the DPI would start to drift. Instead maintain a fixed, sensible DPI at all times.
* Merge branches 'vmware-cursor-position' and ↵Pierre Ossman2021-03-116-2/+44
|\ | | | | | | 'vmware-cursor-position-vncviewer' of https://github.com/lhchavez/tigervnc
* | Fix logging in daemonized tl-sessionPierre Ossman2021-03-111-17/+17
| | | | | | | | | | stderr has been redirected to /dev/null so all logging needs to go to syslog.
| * Add support for notifying clients about pointer movementslhchavez2021-03-026-2/+44
|/ | | | | | | | | | | | | | | | | | | | | | | This change adds support for the VMware Mouse Position pseudo-encoding[1], which is used to notify VNC clients when X11 clients call `XWarpPointer()`[2]. This function is called by SDL (and other similar libraries) when they detect that the server does not support native relative motion, like some RFB clients. With this, RFB clients can choose to adjust the local cursor position under certain circumstances to match what the server has set. For instance, if pointer lock has been enabled on the client's machine and the cursor is not being drawn locally, the local position of the cursor is irrelevant, so the RFB client can use what the server sends as the canonical absolute position of the cursor. This ultimately enables the possibility of games (especially FPS games) to behave how users expect (if the clients implement the corresponding change). Part of: #619 1: https://github.com/rfbproto/rfbproto/blob/master/rfbproto.rst#vmware-cursor-position-pseudo-encoding 2: https://tronche.com/gui/x/xlib/input/XWarpPointer.html 3: https://hg.libsdl.org/SDL/file/28e3b60e2131/src/events/SDL_mouse.c#l804
* Merge branch 'documentation' of https://github.com/grulja/tigervncPierre Ossman2021-03-022-0/+120
|\
| * Add documentation to the new systemd supportJan Grulich2021-03-022-0/+120
| |
* | Drop other selection on ownership changePierre Ossman2021-03-011-0/+7
|/ | | | | Otherwise we might end up owners of something we cannot deliver data on, which can hang applications.
* Merge branch 'allow-tcp-and-unix' of https://github.com/jlesage/tigervncPierre Ossman2021-02-094-7/+17
|\
| * Added the ability to listen on both Unix socket and TCP port.Jocelyn Le Sage2021-02-044-7/+17
| | | | | | | | Setting `rfbport` to `-1` disables TCP port listening.
* | Update copyright year to 2021Pierre Ossman2021-01-251-1/+1
|/
* Merge branch 'noblock' of https://github.com/CendioOssman/tigervncPierre Ossman2021-01-197-24/+14
|\
| * Change streams to be asynchronousPierre Ossman2020-05-216-20/+0
| | | | | | | | | | | | | | | | | | | | Major restructuring of how streams work. Neither input nor output streams are now blocking. This avoids stalling the rest of the client or server when a peer is slow or unresponsive. Note that this puts an extra burden on users of streams to make sure they are allowed to do their work once the underlying transports are ready (e.g. monitoring fds).
| * Handle clients lost during queryingPierre Ossman2020-05-211-2/+12
| |
| * Check buffer usage with a simply booleanPierre Ossman2020-05-212-2/+2
| | | | | | | | | | External callers don't need to know the exact details, only if there is data that needs to be flushed or not.
* | Change to user's home directory before starting sessionPierre Ossman2020-12-041-0/+3
| | | | | | | | | | This is what display managers do, so it is expected by many environments.
* | Fix incorrect daemonization by vncsessionPierre Ossman2020-11-251-1/+1
| | | | | | | | | | | | We terminated the child instead of the parent after fork(). Reported by Jan Grulich from Red Hat.
* | Update keycode maps to latest versionPierre Ossman2020-11-164-20/+28
| | | | | | | | Mainly fixes for Japanese and Korean keyboard layouts.
* | Fix installation of vncsession.manPierre Ossman2020-10-021-1/+1
| | | | | | | | | | It is now dynamically generated, so it will be in the build directory and not in the source directory.
* | Merge branch 'systemd' of https://github.com/grulja/tigervncPierre Ossman2020-10-023-3/+3
|\ \
| * | Use /run instead of /var/run which is just a symlinkJan Grulich2020-09-293-3/+3
| | |
* | | Merge branch 'sysconfdir' of https://github.com/metalefty/tigervncPierre Ossman2020-10-024-7/+8
|\ \ \ | |/ / |/| |
| * | Replace some more hard-coded /etc with sysconfdirKoichiro IWAO2020-09-232-2/+2
| | |
| * | Do not assume sysconfdir is always /etcKoichiro IWAO2020-09-162-5/+6
| | | | | | | | | | | | Refer @CMAKE_INSTALL_FULL_SYSCONF@ instead.
* | | Tolerate specifying -BoolParam 0 and similarPierre Ossman2020-09-184-4/+35
|/ / | | | | | | | | | | This is needed by vncserver which doesn't know which parameters are boolean, and it cannot use the -Param=Value form as that isn't tolerated by the Xorg code.
* | Remove incorrect umask changePierre Ossman2020-09-071-3/+0
| | | | | | | | | | Not sure why this got in there, but it is incorrect as it results in creating files with too liberal permissions.
* | Change development version to 1.11.80Pierre Ossman2020-08-191-1/+1
| |
* | Comment on SELinux rule affect other commandsPierre Ossman2020-08-171-0/+1
| | | | | | | | | | | | This line affects every command run by the user, unlike everything else in our policy which is just for vncserver/vncsession. It's easy to miss this so add a comment pointing it out.
* | Merge branch 'vnc_home' of https://github.com/wrabcak/tigervncPierre Ossman2020-08-172-5/+18
|\ \
| * | [SELinux] Allow vnc session create ~/.vncLukas Vrabec2020-07-312-5/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow vnc session labeled with SELinux vnc_session_t domain to create directory in user homedir ~/.vnc labeled with SELinux label xdm_home_t. Because also process vncpasswd creates ~/.vnc directory, file transition that userdomain attribute SELinux domain (label for the process) can create the directory with the same label needs to be added. userdomain attribute contains following SELinux types: auditadm_t dbadm_t guest_t logadm_t secadm_t staff_t staff_wine_t sysadm_t unconfined_t user_t user_wine_t webadm_t xguest_t Signed-off-by: Lukas Vrabec <lvrabec@redhat.com>
* | | vncserver: Display check should confirm UNIX domain socket is still validMark Mielke2020-07-291-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the X server is not shut down cleanly, it can leave UNIX domain sockets around that "vncserver" has previously mis-identified as evidence that the display number is still in use. Instead of checking for existence of /tmp/.X11-unix/X<n>, the code will now attempt to connect to the socket to confirm that there is a server process listening on this UNIX domain socket. This will eliminate false positives in the case the UNIX domain socket still exists but is not associated with a listening Xorg server. The Xorg server does not have a problem with fixing this file when it next starts up. It is only important to avoid using the port if it is still in use.
* | | vncserver: Display check should be re-factored for Perl 5Mark Mielke2020-07-291-36/+6
| | | | | | | | | | | | | | | | | | | | | | | | The display check and related setup code was complex due to compatibility with Perl 4. This included different ways of obtaining system constants and building system data structures. Perl 5 provides direct constants and utility methods to abstract this out of the vncserver code.
* | | vncserver: Display check should confirm lock file is still validMark Mielke2020-07-291-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the X server is not shut down cleanly, it may leave lock files around that "vncserver" has previously mis-identified as evidence that the display number is still in use. Instead of checking for existence of /tmp/.X<n>-lock, the code will now extract the PID from the lock file and confirm that a process exists with the same PID. This will eliminate false positives in the case that this file references a PID that no longer exists. The Xorg server does not have a problem with fixing this file when it next starts up. It is only important to avoid using the port if it is still in use.
* | | vncserver: Display check should avoid duplicate codeMark Mielke2020-07-291-14/+10
| | | | | | | | | | | | | | | | | | The display check had duplicate code to first check if the X11 port is not in use, and then check that the RFB port is not in use. Eliminate the duplicate code by using a for-loop.
* | | vncserver: Display check should use named variablesMark Mielke2020-07-291-6/+13
| | | | | | | | | | | | | | | | | | | | | Several calculated values such as file paths and port numbers were hard coded within strings or expressions, sometimes multiple times. These values should be extracted into named variables to improve self-documentation and avoid accidental divergence.
* | | vncserver: Display check should check for lock file firstMark Mielke2020-07-291-6/+6
| | | | | | | | | | | | | | | | | | Checking for the existence of `/tmp/.X<n>-lock` is a fast read-only operation, while calls to bind() or connect() are more expensive and may have side effects. Perform the fast operation first.
* | | vncserver: Remove legacy HP-UX supportMark Mielke2020-07-291-7/+0
|/ / | | | | | | | | | | The check for existence of `/usr/spool/sockets/X11/<n>` has been removed. This file is only relevant on HP-UX, and TigerVNC dropped support for HP-UX in commit 31e5aa3.
* | Remove trailing spaces in user nameJan Grulich2020-07-031-1/+1
| | | | | | | | | | | | | | It's quite easy to make a mistake and add an additional space when configuring users in the vncserver.users config file. You will then get an error that the user doesn't exist and it's hard to spot the mistake. Same applies for a space before the display number.
* | Merge branch 'regions' of https://github.com/CendioOssman/tigervncPierre Ossman2020-06-155-157/+150
|\ \
| * | Get rid of magical assignment to RegionPierre Ossman2020-05-183-23/+17
| | | | | | | | | | | | Might as well make these explicit so the cost is apparent.
| * | Switch region code to pixmanPierre Ossman2020-05-011-2/+1
| | | | | | | | | | | | | | | This is the current upstream so let's make use of it to get the latest in features and fixes.
| * | Avoid using RegionInit() because of empty rectsPierre Ossman2020-05-011-26/+26
| | | | | | | | | | | | | | | It creates an invalid region if given an empty rect. Fortunately RegionInitBoxes() handles that just fine, so use that instead.
| * | Stop using legacy region macrosPierre Ossman2020-05-012-134/+134
| | | | | | | | | | | | | | | We no longer support such old X servers so start using the current functions.
* | | Catch errors resizing framebufferPierre Ossman2020-05-231-2/+7
| | |
* | | Add final line break to FatalError() callsPierre Ossman2020-05-232-7/+7
| |/ |/| | | | | | | It expects the callers to include this, so make sure we're consistently providing one.