https://bugs.kde.org/show_bug.cgi?id=524950
Bug ID: 524950
Summary: polkit-kde-authentication-agent-1 fails with "No
session for pid" on Plasma 6 Wayland (regression)
Classification: Plasma
Product: policykit-kde-agent-1
Version First 6.6.6
Reported In:
Platform: Kubuntu
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected], [email protected]
Target Milestone: ---
DESCRIPTION
polkit-kde-authentication-agent-1 fails to register as the PolicyKit auth
agent. No graphical password prompt appears for privileged actions; pkexec
falls back to a text prompt in the terminal instead of a GUI dialog. This is a
regression - it was working correctly about 2 months ago, before some routine
package updates.
STEPS TO REPRODUCE
1. Log into KDE Plasma (Wayland session, via SDDM)
2. Run in a terminal: pkexec ls /root
3. Expect a graphical PolicyKit password dialog
OBSERVED RESULT
No graphical dialog appears. journalctl --user -b 0 | grep -i polkit shows the
agent's unit starting and immediately failing:
"Cannot create unix session: No session for pid <PID>"
"Cannot register authentication agent!"
polkit_agent_listener_register_with_options: assertion 'POLKIT_IS_SUBJECT
(subject)' failed
Same failure happens even when launching the agent manually from a terminal
inside the session.
EXPECTED RESULT
A graphical PolicyKit dialog should appear asking for the password, as it did
before the regression.
SOFTWARE/OS VERSIONS
Operating System: Kubuntu 26.04 LTS
KDE Plasma Version: 6.6.6
KDE Frameworks Version: 6.24.0
Qt Version: 6.10.2
Kernel Version: 7.0.0-30-generic (64-bit)
Graphics Platform: Wayland
polkit-kde-agent-1 package version: 4:6.6.4-0ubuntu1
systemd version: 259 (259.5-0ubuntu3.4)
ADDITIONAL INFORMATION
Not a VM (systemd-detect-virt: none). Processes launched by the Plasma session
(including the polkit agent itself, and even plain terminals) end up in cgroup
user@<uid>.service/app.slice/... via systemd-run, rather than in
session-N.scope. polkit's session lookup (sd_pid_get_session) walks the cgroup
path looking for session-N.scope and fails for anything under app.slice, so the
agent can never resolve its own session and register. Confirmed via journalctl
--user, loginctl session-status, and busctl call org.freedesktop.login1
/org/freedesktop/login1 org.freedesktop.login1.Manager GetSessionByPID.
--
You are receiving this mail because:
You are watching all bug changes.