Pierre Ossman
828ff0e662
Remove DDXTIME code
This hasn't been used since xorg-server 1.1 so get rid of it.
3 years ago
Pierre Ossman
0d255914de
Call FatalError() on bad Xvnc arguments
This is consistent with other ddx behaviour.
3 years ago
Pierre Ossman
53ff8a2eec
Use CHECK_FOR_REQUIRED_ARGUMENTS() for arg check
This is what all the other ddx variants use, so do the same in Xvnc to
be consistent.
3 years ago
Pierre Ossman
43bfc0971f
Apply Xorg coding style to xvnc.c
Makes it easier to compare with upstream files as the formatting will be
the same.
3 years ago
Pierre Ossman
952bfab6e1
Remove #ifdef RENDER
RENDER has been mandatory since xorg-server 1.9, so remove these
checks.
3 years ago
Pierre Ossman
12c0f326e1
Move ddxInputThreadInit() to xvnc.c
This should only be in the ddx parts of an X server, and Input.c is used
by libvnc.so as well and can cause conflicts there.
3 years ago
Pierre Ossman
5ebcee5c58
Remove Ubuntu rethrow signals patch
This was removed from Ubunut's X.org packages years ago, so drop it from
our packing as well.
3 years ago
Pierre Ossman
86a564a706
Correctly handle screen layout with offset
We miscalculated the screen layout if the geometry had an offset as we
adjusted the real screen layout to account for the offset, but compared
it to the unadjusted geometry.
3 years ago
Pierre Ossman
9ec1f360de
Merge branch 'smooth-edge-scrolling' of https://github.com/ToyKeeper/tigervnc
3 years ago
Pierre Ossman
dff1442d2a
Merge branch 'master' of https://github.com/jasonsikes/tigervnc
3 years ago
Pierre Ossman
a29fe72102
Avoid some variable aliasing
3 years ago
Pierre Ossman
0517ae84eb
Remove unnecessary header include
3 years ago
Pierre Ossman
775d432ec7
Use <user>@<hostname> as the default desktop name
Is a lot more useful default than the previous "x11", or "x0vncserver".
At the same time give x0vncserver a parameter to change the name.
3 years ago
Pierre Ossman
960c7d2ff3
Clean up default value for X509 parameters
Let's avoid making this too complex and force every user to know about
magical functions.
3 years ago
JASON SIKES
fb61fe8fdc
Use RFC7919-2048 group in GnuTLS for FIPS compliance.
3 years ago
Pierre Ossman
6558d20683
Keep own memory for duplicate config value
Allows the default value to be dynamically generated in a buffer that is
reused.
3 years ago
Pierre Ossman
cd6e51f926
Remove unused LogParameter::setDefault()
3 years ago
Pierre Ossman
17aee63066
Don't list clipboard parameters for x0vncserver
Better to just hide these parameters rather than stating that they are
unused in the man page.
3 years ago
Pierre Ossman
586645a0f0
Merge branch 'tls' of https://github.com/CendioOssman/tigervnc
3 years ago
Pierre Ossman
e779322f05
Don't wait for TLS close response
Our current architecture doesn't support waiting for a response here, so
don't even try or we'll just get an error.
3 years ago
Pierre Ossman
14d21d7b44
Handle GnuTLS shutdown on dead session
The session might have died, or failed to initialise properly, so be
prepared for gnutls_bye() to be unable to do its job.
3 years ago
Pierre Ossman
fa2d8cd455
Properly clean up client VeNCrypt handling
We would leak the security module below the top client VeNCrypt module,
meaning that those modules would not get a chance to shut down
gracefully.
3 years ago
Pierre Ossman
cef285311f
Remove unneeded NULL checks
It's perfectly safe to delete NULL pointers, so simplify things by
removing these checks.
3 years ago
Pierre Ossman
9c407d2a0b
Propagate exceptions from GnuTLS push/pull functions
Gives us a more meaningful error rather than just "Error in push/pull
function".
3 years ago
Pierre Ossman
d1ad6b5c25
Remove early data check for TLSInStream
Having this early check means that we somewhat randomly get different
exception behaviours on errors in deeper layers as some exceptions are
allowed to propagate unhindered and some are not (since they are thrown
in the pull function).
3 years ago
Pierre Ossman
aa224673e4
Propagate errno to GnuTLS
Give GnuTLS the correct errno from deeper layers, in the cases where we
know it. In most cases GnuTLS doesn't care, but just in case...
3 years ago
Pierre Ossman
1b00e99722
Merge branch 'actions' of https://github.com/CendioOssman/tigervnc
3 years ago
Pierre Ossman
abcabc5a9e
Convert CI to GitHub Actions
Travis has unfortunately been severely rate limited by Docker Hub so we
have to switch to GitHub, which has an agreement with Docker to avoid
the rate limiting.
3 years ago
Pierre Ossman
8616c0bd67
Don't run container builds with a TTY
No TTY is provided in GitHub's environment, so we cannot have this flag.
3 years ago
Pierre Ossman
500a495773
Force update of libarchive in CentOS 8 image
Otherwise cmake breaks as it requires a newer version without properly
listing that in its dependencies.
3 years ago
Pierre Ossman
087895a2f8
Disable nonliteral format warnings on clang
These are incompatible with functions such as gettext() as clang hasn't
implemented the function attribute function_arg.
3 years ago
binary-manu
35452edc5a
Handle AltGr + accented letter key combo on Windows
3 years ago
Pierre Ossman
a616f0938a
Boot strap github actions
A initial workflow needs to be defined for actions to trigger on pull
requests, so just add a minimal, dummy one.
3 years ago
Jan Grulich
ba837fd283
CharArray: pre-fill empty array with zeroes
CharArray should always be null-terminated. There is a potential
scenario where this all might lead to crash. In Password we call
memset(), passing length of the array we get with strlen(), but
this won't return correct value when the array is not properly
null-terminated.
3 years ago
Pierre Ossman
e1247d9e2a
Merge branch 'view-only-password' of https://github.com/grulja/tigervnc
3 years ago
Pierre Ossman
ef2dfd7c5f
Refer to HOWTO.md from config comments
Give people a chance to know about the documentation.
3 years ago
Pierre Ossman
04f19667cd
Include "session" in examples instead of "desktop"
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.
3 years ago
binary-manu
17af3651d4
Merge branch 'TigerVNC:master' into accented-chars
3 years ago
binary-manu
2aac589db9
Prefer a non-zero getKeyCode() over getExtendedKeyCode()
3 years ago
Jan Grulich
dbf76d2ee8
Let user know that a view-only password is not used
3 years ago
binary-manu
6e57608a27
Handle keys reported only by KeyEvent.getExtendedKeyCode
3 years ago
Zdenek Pytela
47d56c959d
Add vnc_home_t type
The new vnc_home_t type for HOME/.vnc directory was added to the policy,
backed by a name transition. The vnc_session_t domain can manage files
and directories of this type.
3 years ago
Zdenek Pytela
3c8622691a
Allow vnc_session_t manage nfs dirs and files conditionally
The permissions set to manage directories and files with the nfs_t type
is allowed when the use_nfs_home_dirs boolean is turned on.
Resolves: https://github.com/TigerVNC/tigervnc/issues/1189
3 years ago
Zdenek Pytela
23cf514ac2
selinux: further style and comprehensibility improvements
Sections and rules blocks reordered according to the Style guide.
https://github.com/TresysTechnology/refpolicy/wiki/StyleGuide
3 years ago
Vit Mojzis
386542e6d5
selinux: Fix issues reported by SELint
Style guide [1] issues only. No impact on policy functionality.
[1] - https://github.com/TresysTechnology/refpolicy/wiki/StyleGuide
3 years ago
Jan Grulich
2a042c913c
Update RHEL package spec files
3 years ago
Jan Grulich
6125695b80
SELinux: Add missing compression and install policy to correct directory
3 years ago
Pierre Ossman
a8357a5305
Avoid absolute path for vncserver.users
Build flags control where this file ends up, so avoid assuming a
specific path in the HOWTO.
3 years ago
Pierre Ossman
1e55cffb74
Reflow HOWTO.md to 72 columns
The line width was very inconsitent in this file, so standardise on the
common 72 characters.
3 years ago
Selene ToyKeeper
7c6fce49c1
made full-screen edge scrolling smoother and faster
The old method used a very slow frame rate with small steps,
which made it obnoxious during use. The new method has a few
improvements:
- Calculates "edge" region width automatically, as a ratio of
the viewport size. Default is 1/16th.
- Uses a different edge width for x and y, which works better
on very wide or very tall screens.
- Increased default frame rate from 10 fps to 60 fps.
- Replaced hardcoded frame rate with a #define.
- Reduced maximum movement per frame slightly, because the
frame rate is so much faster. The overall result is still much
faster, but also easier to do small adjustments with.
- Fixed off-by-one error in scroll rate calculation formula. Left/up
scrolls were faster than down/right, but this is fixed.
This makes it more comfortable to use TigerVNC on a small screen
to work on a larger screen for hours at a time.
3 years ago