public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Bojan Smojver <bojan@rexursive.com>
To: git-commits@fedoraproject.org
Subject: [rpms/xrdp] epel8: Merge branch 'rawhide' into epel8
Date: Fri, 17 Jul 2026 08:09:19 GMT [thread overview]
Message-ID: <178427575987.1.16617721221263944351.rpms-xrdp-4563bac16c9b@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/xrdp
Branch : epel8
Commit : 4563bac16c9b704145b1feb5722261a1f160d522
Author : Bojan Smojver <bojan@rexursive.com>
Date : 2026-07-17T18:09:05+10:00
Stats : +44/-19 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/xrdp/c/4563bac16c9b704145b1feb5722261a1f160d522?branch=epel8
Log:
Merge branch 'rawhide' into epel8
---
diff --git a/README.md b/README.md
index 6d28731..0002572 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,5 @@
Downgrade from 0.10.x to 0.9.x
==
-
Version 0.10.x requires different permissions of `/run/xrdp` directory than
version 0.9.x. When 0.10.x is fully uninstalled, this directory is removed
and subsequent installation of 0.9.x should work fine.
@@ -12,7 +11,6 @@ changed to 1777 beforehand.
Unprivileged xrdp user in 0.10.2 and up
==
-
Recent builds of xrdp (0.10.2 and above) create local unprivileged xrdp user,
which is used to run xrdp daemon. Script `/usr/share/xrdp/xrdp-chkpriv` checks
whether `/etc/xrdp/key.pem`, `/etc/xrdp/cert.pem` and `/etc/xrdp/rsakeys.ini`
@@ -27,7 +25,6 @@ permissions.
Restarts
==
-
Service restarts after RPM package upgrades have been disabled on purpose.
This is to avoid a situation where an update is performed from within a
session running on xrdp, which can then cause dnf to only perform part of the
@@ -40,14 +37,12 @@ Wayland do.
xorgxrdp
==
-
Note that xorgxrdp is not installed and configured by default. Each build
depends on specific binary version of Xorg. If you wish to use it, install
it by hand or its glamor build.
SELinux
==
-
You may need to install xrdp-selinux package in order to get the required
SELinux policy that will allow xrdp and associated processes to run
successfully if SELinux is enabled. On versions of Fedora and RHEL that support
@@ -56,16 +51,23 @@ weak dependencies, xrdp-selinux will be a recommended package.
**WARNING**: The policy module contains a rule that permits
unconfined_service_t processes to transition into unconfined_t. If xrdp is not
the only service that runs as unconfined_service_t on your system, this policy
-will allow any other such service to transition as well.
+will allow any other such service to transition as well. This transition is
+exercised on every xrdp session (see below), not just latent in the policy.
+
+The default `/etc/pam.d/xrdp-sesman` configuration invokes `pam_selinux.so`,
+`pam_loginuid.so`, `pam_namespace.so` and `pam_keyinit.so` around the shared
+`password-auth` stack, so session processes get the correct `unconfined_t`
+context instead of remaining `unconfined_service_t` (rhbz#2499948).
-Default configuration in `/etc/pam.d/xrdp-sesman` uses password-auth for auth,
-account, password and session. This may result in an incorrect context for the
-processes in the session. Please adjust this file to match your desktop
-environment. An example for Gnome desktop is given in the file.
+If you are running a GNOME session over xrdp, comment out the generic block
+in `/etc/pam.d/xrdp-sesman` and uncomment the Gnome-specific block instead.
+This routes auth/session handling through `gdm-password`, which already
+carries the correct SELinux/session ordering and additionally unlocks GNOME
+Keyring automatically at login, so you won't be prompted to unlock it a
+second time inside the session.
TigerVNC >= 1.8.0
==
-
TigerVNC 1.8.0 enables clipboard support by default (i.e. no need to run
vncconfig), which may cause disconnections in xrdp. To avoid the issue, these
can be added to [Xvnc] stanza in `/etc/xrdp/sesman.ini`:
@@ -80,19 +82,23 @@ Of course, cut and paste support will not work with these set.
Runlevel
==
-
If the system is configured to boot into graphical target, you may experience
problems with xrdp Gnome sessions. In order to avoid this, put the system into
multi user target. Like this:
```
systemctl set-default multi-user.target
```
-
Then reboot.
+GNOME on X11 is no longer part of Fedora, so GNOME is no longer a supported
+desktop for xrdp sessions on Fedora. If you need RDP access to a GNOME
+desktop, use GNOME's built-in headless GNOME Remote Desktop instead of xrdp —
+it speaks RDP natively, is Wayland-based, and doesn't need any of the
+X11/PAM workarounds this document describes. xrdp remains the right choice
+for XFCE, KDE Plasma, and other X11-based desktops on Fedora.
+
VSOCK
==
-
An example of a how to set up xrdp with VSOCK can be found here:
https://bugzilla.redhat.com/show_bug.cgi?id=1787953#c22
@@ -102,7 +108,6 @@ updates are already shipped, but in a current, JavaScript format.
KDE Plasma
==
-
If you are using plasma-workspace package with xrdp, be sure to install
plasma-workspace-x11 to get full functionality. See this for more details:
diff --git a/xrdp-sesman.pamd b/xrdp-sesman.pamd
index a23efb0..5e791ad 100644
--- a/xrdp-sesman.pamd
+++ b/xrdp-sesman.pamd
@@ -1,13 +1,30 @@
#%PAM-1.0
-# Generic Fedora config
+# Generic Fedora/RHEL config — use this unless you are running xrdp
+# sessions into a GNOME desktop, in which case use the Gnome-specific
+# config below instead, which also unlocks GNOME Keyring automatically.
auth include password-auth
account include password-auth
password include password-auth
-session include password-auth
+
+# pam_selinux.so close must be the first session rule so any
+# prior context is torn down before we set up the new one.
+session required pam_selinux.so close
session required pam_loginuid.so
+# pam_selinux.so open must run before any module below that
+# should execute in the user's context. Without this pair,
+# session processes are left running as unconfined_service_t
+# instead of unconfined_t. See rhbz#2499948.
+session required pam_selinux.so open
+session required pam_namespace.so
+session optional pam_keyinit.so force revoke
+session include password-auth
session optional pam_lastlog.so silent
-# Gnome specific Fedora config
+# Gnome specific config. Uncomment this block and comment out the
+# generic block above if you are running xrdp sessions into a GNOME
+# desktop. This uses GDM's own PAM stack, which already includes the
+# correct pam_selinux.so/pam_namespace.so ordering and additionally
+# unlocks GNOME Keyring automatically at login.
#auth include gdm-password
#account include gdm-password
#password include gdm-password
diff --git a/xrdp.spec b/xrdp.spec
index 604f975..eedc5c2 100644
--- a/xrdp.spec
+++ b/xrdp.spec
@@ -21,7 +21,7 @@
Summary: Open source remote desktop protocol (RDP) server
Name: xrdp
-Epoch: 1
+Epoch: 2
Version: 0.10.6.1
Release: 1%{?dist}
# Automatically converted from old format: ASL 2.0 and GPLv2+ and MIT - review is highly recommended.
@@ -350,6 +350,9 @@ fi
%{_datadir}/selinux/*/%{name}.pp
%changelog
+* Fri Jul 17 2026 Bojan Smojver <bojan@rexursive.com> - 1:0.10.6.1-2
+- Fix bug #2499948
+
* Tue Jul 07 2026 Bojan Smojver <bojan@rexursive.com> - 1:0.10.6.1-1
- Update to 0.10.6.1
- CVE-2026-41252, CVE-2026-41521, CVE-2026-44178, CVE-2026-42218
next reply other threads:[~2026-07-17 8:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-17 8:09 Bojan Smojver [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-07-17 22:11 [rpms/xrdp] epel8: Merge branch 'rawhide' into epel8 Bojan Smojver
2026-07-17 22:08 Bojan Smojver
2026-07-17 8:15 Bojan Smojver
2026-07-07 9:51 Bojan Smojver
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178427575987.1.16617721221263944351.rpms-xrdp-4563bac16c9b@fedoraproject.org \
--to=bojan@rexursive.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox