Bug 502189 - Password required to cancel updating sysupdated upgrade
Summary: Password required to cancel updating sysupdated upgrade
Status: RESOLVED FIXED
Alias: None
Product: kde
Classification: I don't know
Component: general (other bugs)
Version First Reported In: unspecified
Platform: KDE Linux Linux
: NOR minor
Target Milestone: ---
Assignee: Unknown
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2025-03-30 01:00 UTC by Justin Zobel
Modified: 2025-08-16 15:54 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Screenshot (28.82 KB, image/png)
2025-03-30 01:00 UTC, Justin Zobel
Details

Note You need to log in before you can comment on or make changes to this bug.
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