aboutsummaryrefslogtreecommitdiffstats
path: root/unix
Commit message (Collapse)AuthorAgeFilesLines
* Create CMake find module for finding pwqualityPierre Ossman7 days1-1/+2
| | | | So we use the standard method to find libraries.
* Create CMake find module for finding libsystemdPierre Ossman7 days1-2/+3
| | | | So we use the standard method to find libraries.
* Create CMake find module for finding libselinuxPierre Ossman7 days1-1/+2
| | | | So we use the standard method to find libraries.
* Create CMake find module for finding PAMPierre Ossman7 days1-1/+3
| | | | So we use the standard method to find libraries.
* Merge branch 'RHEL-34880' of github.com:casantos/tigervncPierre Ossman2025-07-024-6/+22
|\
| * Make Xvnc and x0vncserver pass the display name to PAM modules.Carlos Santos2025-06-134-1/+18
| | | | | | | | | | | | Fixes: https://issues.redhat.com/browse/RHEL-34880 Signed-off-by: Carlos Santos <casantos@redhat.com>
| * xvnc.c: faster handling of the display argument in ddxProcessArgument()Carlos Santos2025-06-131-5/+4
| | | | | | | | | | | | | | | | | | | | Return zero if the current argument starts with ":". It's useless to check if it matches any of the other Xvnc arguments. Also use the global variable explicit_display, set by the X server code, instead of a private flag. Signed-off-by: Carlos Santos <casantos@redhat.com>
* | Merge branch 'nofile-unlimited' of github.com:grulja/tigervncPierre Ossman2025-07-021-8/+4
|\ \
| * | SELinux: Use kernel_read_fs_sysctls interface instead custom policyJan Grulich2025-03-031-8/+4
| | | | | | | | | | | | | | | The kernel_read_fs_sysctls interface does exactly the same thing and we don't reinvent the wheel. It's also easier to maintain.
* | | Gracefully shut down connectionsPierre Ossman2025-06-182-19/+56
| |/ |/| | | | | | | Allow everything to flush properly so that both ends see a clean close, rather than a reset connection. Avoids misleading error messages.
* | Remove Xvnc manual bool param checkPierre Ossman2025-06-113-30/+0
| | | | | | | | | | This was supposed to be removed in e97e225 when we moved this to the core library.
* | xvnc.c: remove unnecessary test of function return valueCarlos Santos2025-06-081-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This: ret = vncHandleParamArg(argc, argv, i); if (ret != 0) return ret; return 0; Is the same as return vncHandleParamArg(argc, argv, i); Signed-off-by: Carlos Santos <casantos@redhat.com>
* | core::Configuration: add a size() methodCarlos Santos2025-06-081-7/+1
| | | | | | | | | | | | | | So it's not necessary to iterate over the internal list to obtain the number of parameters. Signed-off-by: Carlos Santos <casantos@redhat.com>
* | Fix -HostsFile crash in x0vncserverPierre Ossman2025-05-261-1/+2
| | | | | | | | | | | | The lifetime of this object was changed in b0c1dba, which resulted in the object being destroyed immediately again. The server would then crash on the next connection, where the invalid filter would be called.
* | Merge branch 'cleanrelease' of github.com:CendioOssman/tigervncPierre Ossman2025-05-051-1/+1
|\ \
| * | Be consistent in copyright and team descriptionPierre Ossman2025-03-131-1/+1
| | |
* | | Don't print Xvnc banner before parsing argsPierre Ossman2025-04-081-4/+5
| | | | | | | | | | | | | | | | | | | | | If we'll be running in inetd mode, then stdout and stderr will be a client socket and not an appropriate place for logging. Mimic what Xorg does instead.
* | | Fix accidental old style functionPierre Ossman2025-03-301-1/+1
| | |
* | | Avoid mixing declarations and codePierre Ossman2025-03-301-2/+3
| | | | | | | | | | | | Keep the compiler happy and get rid of noise.
* | | Exclude old Xorg stuff when not neededPierre Ossman2025-03-301-0/+6
| | | | | | | | | | | | | | | These things have been removed or moved to common code in Xorg 21.1, so let's avoid it in our code to get rid of warnings.
* | | Fixed build warnings: ignoring return valuePiotr Henryk Dabrowski2025-03-201-3/+7
| | |
* | | Convert AllowOverride to StringListParameterPierre Ossman2025-03-131-30/+8
| | |
* | | Make use of IntParameter range validationPierre Ossman2025-03-064-8/+12
|/ /
* / Fix bad forward declarations of StringParameterPierre Ossman2025-03-031-1/+1
|/ | | | This should have been done as part of cf1bc66.
* Add SELinux policy rules allowing to access /proc/sys/fs/nr_openJan Grulich2025-02-271-0/+8
| | | | | This is needed when the nofile limit is set to unlimited, otherwise we will fail to start a VNC session.
* Merge branch 'corelib' of https://github.com/CendioOssman/tigervncPierre Ossman2025-02-2530-334/+396
|\
| * Stop relying on "using namespace"Pierre Ossman2025-02-257-72/+58
| | | | | | | | | | | | There were not many uses of this left after the move to std::exception and the move to the core library. Let's get rid of the last stragglers and reduce the risk of name collisions.
| * Use absolute paths for librariesPierre Ossman2025-02-251-2/+2
| | | | | | | | | | To reduce the risk of duplicating the libraries on the link line, as we have absolute paths in the .la files.
| * Revert Xvnc double slash hackPierre Ossman2025-02-251-8/+5
| | | | | | | | | | We should hopefully no longer require the common libraries to be linked twice anymore for things to work.
| * Remove unused libnetwork dependency from vncconfigPierre Ossman2025-02-251-1/+1
| |
| * Move concurrency abstration layer to corePierre Ossman2025-02-251-1/+1
| | | | | | | | | | OS abstractions are generic enough that we can merge these with the new core library.
| * Move application directory handling to corePierre Ossman2025-02-252-4/+5
| | | | | | | | | | These are general plumbing, so they fit in nicely with the new core library.
| * Rename core/util to core/stringPierre Ossman2025-02-253-3/+3
| | | | | | | | | | It's just string helper functions here, so let's get rid of the catch-all name for this module.
| * Get rid of __rfbmax()/__rfbmin()Pierre Ossman2025-02-254-12/+19
| | | | | | | | | | | | | | | | They weren't that well used, and were mostly just confusing special functions anyway. Allows us to move away from generic and ambigious headers such as "util".
| * Move timers to core libraryPierre Ossman2025-02-256-17/+18
| | | | | | | | | | | | | | Make it clearer what is protocol handling and what is just general plumbing. This is one step of several.
| * Move logging to core libraryPierre Ossman2025-02-2512-52/+52
| | | | | | | | | | | | | | Make it clearer what is protocol handling and what is just general plumbing. This is one step of several.
| * Move configuration to core libraryPierre Ossman2025-02-2510-95/+129
| | | | | | | | | | | | | | Make it clearer what is protocol handling and what is just general plumbing. This is one step of several.
| * Move base exception classes to core libraryPierre Ossman2025-02-255-7/+10
| | | | | | | | | | | | | | Make it clearer what is protocol handling and what is just general plumbing. This is one step of several.
| * Move utility functions to core libraryPierre Ossman2025-02-136-14/+19
| | | | | | | | | | | | | | Make it clearer what is protocol handling and what is just general plumbing. This is one step of several.
| * Move basic data types to core libraryPierre Ossman2025-02-1312-34/+45
| | | | | | | | | | | | | | Make it clearer what is protocol handling and what is just general plumbing. This is one step of several.
| * Use initializer lists for basic data typesPierre Ossman2025-02-133-14/+14
| | | | | | | | | | | | | | | | Try to keep the code more compact for the simple things where the type should be obvious from the context. Helps us avoid line wrapping. Also remove explicit conversions to Region where the compiler is able to figure it out by itself, again to reduce line length.
| * Move getHostAndPort() to network libraryPierre Ossman2025-02-131-2/+1
| | | | | | | | | | This is a network function, so it makes more sense in the network library.
| * Order libraries for Xvnc in dependency orderPierre Ossman2025-02-131-1/+1
| | | | | | | | | | libtool seems to have some issues ordering everything correctly, and this seems to work better.
| * Reduce header #include:sPierre Ossman2025-02-1310-4/+22
| | | | | | | | | | Make compile times faster by reducing the number of headers included in other headers.
* | Add SELinux policy rules allowing to create directories under /rootJan Grulich2025-02-131-0/+10
|/ | | | | | We have policy that allows to create ~/.local or ~/.config, but we don't have rule that allows the same under /root directory, where we fail in case any of these directories doesn't exist.
* Fix argument parsing regression in x0vncserverPierre Ossman2025-01-231-1/+1
| | | | | The argument index progression wasn't properly adjusted in e97e225, causing it to skip arguments.
* Change development version to 1.15.80Pierre Ossman2025-01-141-1/+1
|
* Update visible copyright year to 2025Pierre Ossman2025-01-141-1/+1
|
* Always use lowercase "t" for TigerVNC teamPierre Ossman2025-01-141-1/+1
| | | | It's not a formal name, so use regular case.
* Avoid fetching details of disabled pointerPierre Ossman2025-01-141-1/+1
| | | | | | | | | Certain versions of the xserver code will crash if you access the details of a disabled pointer. The details are also not up to date when it is disabled, so it is likely concepually wrong to ignore it at this point anyway. Issue originally discovered and diagnosed by Mark Mielke.