Bug 502189

Summary: Password required to cancel updating sysupdated upgrade
Product: [I don't know] kde Reporter: Justin Zobel <justin>
Component: generalAssignee: Unknown <null>
Status: RESOLVED FIXED    
Severity: minor CC: aleixpol, nate, sitter
Priority: NOR Keywords: usability
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: KDE Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot

Description Justin Zobel 2025-03-30 01:00:41 UTC
Created attachment 179854 [details]
Screenshot

STEPS TO REPRODUCE
1. Start a sysupdated update e.g. KDE Linux
2. Cancel the upgrade

OBSERVED RESULT
Password required as in Screenshot

EXPECTED RESULT
Password not required

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

Operating System: KDE Linux 202503190255
KDE Plasma Version: 6.3.80
KDE Frameworks Version: 6.13.0
Qt Version: 6.8.2
Kernel Version: 6.13.7-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 PRO 4750U with Radeon Graphics
Memory: 32 GiB of RAM (29.1 GiB usable)
Graphics Processor: AMD Radeon Graphics
Manufacturer: LENOVO
Product Name: 20Y1001SAU
System Version: ThinkPad P14s Gen 1
Comment 1 Nate Graham 2025-03-31 19:55:26 UTC
This'll be a distro config issue; we need to change the polkit rules to not ask for a password.
Comment 2 Nate Graham 2025-08-13 20:27:52 UTC
Actually it's an upstream bug: https://github.com/systemd/systemd/issues/38568.

I've submitted a workaround at https://invent.kde.org/kde-linux/kde-linux/-/merge_requests/216.
Comment 3 Nate Graham 2025-08-14 17:12:05 UTC
Git commit 7de27e272d23530b8c261933671381b0de703e82 by Nate Graham.
Committed on 14/08/2025 at 16:48.
Pushed by ngraham into branch 'master'.

Ship Polkit rule to allow canceling an update without authentication

You can start an update without authentication, but not cancel it. This
is just weird, and likely an upstream bug:
https://github.com/systemd/systemd/issues/38568

Until that bug is resolved, work around it here.

Resolves #235

A  +11   -0    mkosi.extra/usr/share/polkit-1/rules.d/99-kde-linux-cancel-sysupdate.rules

https://invent.kde.org/kde-linux/kde-linux/-/commit/7de27e272d23530b8c261933671381b0de703e82