Commit Graph

5154 Commits

Author SHA1 Message Date
matt335672 201cdc1aea Fix coverity warning over mem leak in smartcard code 2025-01-24 11:36:40 +00:00
matt335672 b56b2da061 Fix potential double-free (Coverity)
xrdp_wm_clear_popup() clears down a popup window, but does not
clear the pointer. This can potentially lead to a double-free on
the popup window bitmap.
2025-01-24 11:27:29 +00:00
matt335672 0f46b7961c Fix Coverity error triggered in utf8_get_next_char() 2025-01-24 11:21:32 +00:00
matt335672 64cfeb3acd Merge pull request #3402 from mvf/manpage-fix
xrdp.8.in: Fix "SEE ALSO" refs to `xrdp-sesman`, `xrdp-sesrun`
2025-01-20 09:54:39 +00:00
Matthias von Faber 6a92ee1697 xrdp.8.in: Fix "SEE ALSO" refs to xrdp-sesman, xrdp-sesrun 2025-01-19 12:41:25 +01:00
matt335672 0a456cb096 Merge pull request #3397 from matt335672/update_upload_artifact
CI: Move to V4 of upload-artifact
2025-01-16 15:50:03 +00:00
matt335672 110df32016 CI: Move to V4 of upload-artifact
https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
2025-01-16 15:37:43 +00:00
matt335672 0bef59a748 Merge pull request #3396 from matt335672/fix_32bit_build
Fix 32-bit CI build
2025-01-15 12:03:47 +00:00
matt335672 3657b5acdd Fix 32-bit CI build
Operating System
  Ubuntu
  24.04.1
  LTS
Runner Image
  Image: ubuntu-24.04
  Version: 20250105.1.0
  Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20250105.1/images/ubuntu/Ubuntu2404-Readme.md
  Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20250105.1

Removing libibus-1.0-dev:i386 and libimlib2-dev:i386 from the 32-bit
build fixes this error:-

The following packages have unmet dependencies:
 shim-signed : Depends: grub-efi-amd64-signed (>= 1.191~) but it is not going to be installed or
                        grub-efi-arm64-signed (>= 1.191~) but it is not installable or
                        base-files (< 12.3)
               Depends: grub-efi-amd64-signed (>= 1.187.2~) but it is not going to be installed or
                        grub-efi-arm64-signed (>= 1.187.2~) but it is not installable
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

This is somewhat difficult to comprehend, as the following packages are
installed:-

base-files                         13ubuntu10.1
grub-efi-amd64-signed              1.202+2.12-1ubuntu7
shim-signed                        1.58+15.8-0ubuntu1
2025-01-15 11:48:12 +00:00
matt335672 30b47ba41b Merge pull request #3394 from matt335672/more_coverity_fixes
Address some Coverity warnings
2025-01-15 09:50:32 +00:00
matt335672 ff70842174 Update manpage after review 2025-01-14 11:38:21 +00:00
matt335672 2a4b40a20c Address some Coverity warnings 2025-01-13 15:24:33 +00:00
matt335672 d2e96fe2d2 Add XAuthorityInSystemDir option
Add an option to allow XAUTHORITY to be moved away from $HOME.

This is modelled on the lightm 'user-authority-in-system-dir' option,
and also current GDM default behaviour.
2025-01-13 11:51:27 +00:00
matt335672 b61dfb1096 Fix minor typo in sesman.ini(5) 2025-01-13 11:51:27 +00:00
matt335672 a0f1b65aee Merge pull request #3392 from matt335672/fix_cov_err
Fix recent coverity-reported issues
2025-01-13 11:48:30 +00:00
matt335672 b04743066d Fix coverity-reported issues
The errors in sesman/chansrv/chansrv_fuse.c appear to be false positives
caused by allocating xhandle->dir_handle, and then
casting xhandle to an integer in xfuse_handle_to_fuse_handle(), thus
hiding xhandle->dir_handle

For both occurrences, the logic has been simplified and made the same,
and a comment has been added to suppress the error.
2025-01-13 10:27:29 +00:00
matt335672 d98c883dfb Merge pull request #3387 from matt335672/fix_mem_leak_vnc_clip
Fix potential memory leak in vnc_clip.c
2025-01-09 11:34:41 +00:00
matt335672 99b6aaff6c Merge pull request #3382 from Bad-ptr/devel
Add sesman.ini FuseMountNameColonCharReplacement option
2025-01-09 10:37:40 +00:00
matt335672 35179f0fc5 Fix potential memory leak in vnc_clip.c 2025-01-09 10:17:00 +00:00
Constantin Kulikov 151c555fc0 Add sesman.ini FuseMountNameColonCharReplacement option 2025-01-08 16:23:14 +03:00
matt335672 e3d502ca06 Merge pull request #3328 from matt335672/fix_time_calls
Remove/replace time calls
2025-01-06 10:22:40 +00:00
matt335672 75aa785f34 Merge pull request #3363 from matt335672/fix_qianxin_mem_leak
Fix memory leak reported by QiAnXinCodeSafe
2025-01-06 09:57:02 +00:00
matt335672 721c5462c5 Merge pull request #3378 from peter15914/fix_memory_leak_os
Fix possible memory leak
2025-01-06 09:54:31 +00:00
peter15914 e70d316afc Fix possible memory leak 2025-01-05 00:03:34 +05:00
metalefty 9b1194a5f3 Merge pull request #3373 from metalefty/copyright 2025-01-01 20:38:45 +09:00
Koichiro Iwao 0c66d2f3a7 Bump copyright year 2024-12-31 22:13:27 +09:00
metalefty bd56127d5b Merge pull request #3370 from metalefty/x264-threads
make x264 threads configurable
2024-12-31 21:23:46 +09:00
Koichiro Iwao 65a02d05a7 x264: minor modifications to docs about x264 multithreading
(cherry picked from commit 85b4c97920e2a4997a778e61b8c42f23fc2af1ee)
2024-12-31 14:02:10 +09:00
metalefty 4e378c9a91 Merge pull request #3368 from metalefty/sysconfsubdir
Allow to change config file (sub)directory
2024-12-29 11:00:16 +09:00
Koichiro Iwao 7db81f8471 genkeymap: pet cppcheck 2024-12-28 23:35:45 +09:00
Koichiro Iwao 81f367134f genkeymap: replace hardcoded path with sysconf(sub)dir 2024-12-28 23:35:38 +09:00
Koichiro Iwao 981ceadd1f keygen: replace hardcoded path with sysconf(sub)dir 2024-12-28 22:21:14 +09:00
Koichiro Iwao 6c3738f434 x264: update docs for x264 threads
(cherry picked from commit c086a89391fb11f5529b0285649daa5991e1aff5)
2024-12-27 11:16:44 +09:00
Koichiro Iwao ad5b76dd36 x264: make threads configurable
Closes: #3366
(cherry picked from commit e6f5e3b0b59feaa08873c0406f85e5a8632881c7)
2024-12-27 11:15:05 +09:00
Koichiro Iwao 75736f4853 Allow to change config file (sub)directory
This allows the `xrdp` part of the path `/etc/xrdp` where config files
are placed to be customizable. This change is useful when trying the
stable version and the devel version alternately.
2024-12-27 10:53:31 +09:00
matt335672 5fe1820ed2 Fix memory leak reported by QiAnXinCodeSafe 2024-12-24 20:08:31 +00:00
matt335672 4c8c7731f2 Merge pull request #3359 from matt335672/czech_kbd
Implement Czech keyboard
2024-12-24 20:00:04 +00:00
matt335672 cbbfdb46dd Add Czech keyboard definition for xorgxrdp 2024-12-23 19:04:18 +00:00
matt335672 eb77601fb6 Add Czech keyboard km-00000405.toml 2024-12-23 19:04:18 +00:00
matt335672 3f1c4b1148 Merge pull request #3357 from matt335672/fix_debug_keyboard
Regression: restore keyboard debug for non-XUP
2024-12-23 18:56:53 +00:00
matt335672 c97bb7d5c4 Regression: restore keyboard debug for non-XUP
Commit c9a2039858 moved the
keyboard functionality associated with the XKB module used by
XUP to a separate module. This prevented the setting of
xrdp.override_keylayout in the config from working on the
login screen and VNC sessions. This commit restores the
override functionality to non-XUP sessions.
2024-12-23 15:00:39 +00:00
matt335672 5a493124b8 Merge pull request #3355 from matt335672/link_error_old_glibc
xrdp-droppriv erroneous includes
2024-12-23 11:30:28 +00:00
matt335672 ae6b1ed8a8 xrdp-droppriv erroneous includes
xrdp-droppriv.c is erroneously including os_calls.c rather than
os_calls.h

This leads to a link failure on Ubuntu 20.04:-

/usr/bin/ld: xrdp-droppriv.o: undefined reference to symbol 'dlclose@@GLIBC_2.2.5'

The error does not happen with later glibc versions, as libdl is
included in libc for these versions.

(cherry picked from commit b914d3e997ee70544db5fd2e28509bbcae32ddc6)
2024-12-23 11:19:30 +00:00
metalefty 834e4880ef Merge pull request #3349 from metalefty/docs
docs: update man page for H.264 stuff
2024-12-23 13:21:35 +09:00
Koichiro Iwao c722cb5bb7 docs: fix typos and revise the man page of gfx.toml 2024-12-22 11:52:24 +09:00
Koichiro Iwao 61271b1ee8 docs: update man page for H.264 stuff
- Update man page for xrdp.ini for newly added frame capture interval
- Add man page for new config file gfx.toml
2024-12-20 23:43:15 +09:00
matt335672 441f427694 Merge pull request #3343 from ximion/wip/debian-pam-limits
pam: debian: Explicitly include pam_limits for xrdp sessions
2024-12-17 10:56:16 +00:00
Matthias Klumpp f581d8ead7 pam: debian: Explicitly include pam_limits for xrdp sessions
This is required, as on Debian, pam_limits is not automatically included
for common sessions, and only for "login" sessions and session managers.
So, xrdp has to include it explicitly to make limits take effect.

See https://wiki.debian.org/Limits for details.
2024-12-16 17:22:03 +01:00
matt335672 1f79eb1c01 Replace g_time3() with g_get_elapsed_ms()
The function as specified used gettimeofday() which is susceptible
to manual time changes, and is obsoleted in POSIX.1-2008. The
replacement uses clock_gettime(CLOCK_MONOTONIC, ) which is not
susceptible to manual time changes (at least on Linux) and cannot run
backwards.

Also, on systems with 32-bit integers, the value returned by this
function wraps around every 49.7 days. To cope with a wraparound in
a way compliant with the C standard, this value needs to return an
unsigned integer type rather than a signed integer type.
2024-12-16 16:13:15 +00:00
matt335672 90798cdeaa Remove g_time2() call
This is currently unused in xrdp
2024-12-16 16:13:15 +00:00