]> git.ipfire.org Git - thirdparty/systemd.git/commit
polkit: use -EBUSY to indicate shortcut after error or denial 36817/head
authorNick Rosbrook <enr0n@ubuntu.com>
Mon, 24 Mar 2025 13:06:33 +0000 (09:06 -0400)
committerNick Rosbrook <enr0n@ubuntu.com>
Tue, 25 Mar 2025 20:15:34 +0000 (16:15 -0400)
commit971fb3b0bc5c4cf22517894de50fee7279a48770
treefcb782daff7f8cf5f9eea88dde1f69bf14a9b3d2
parentbc3a11097f673ce3c2e8ba500014f16402839e53
polkit: use -EBUSY to indicate shortcut after error or denial

Commit 536c18e5c3 ("bus-polkit: shortcut auth. after first denial")
added logic to async_polkit_query_check_action() that returns
-EALREADY when a failure or denial decision was made for a previous
action.

Tweak this to return -EBUSY instead of -EALREADY. This hopefully makes
the intent of the error more clear. EALREADY suggests that the request
is OK, but polkit is processing something else, and we should come back
later. EBUSY suggests that polkit is busy or unusable, hence the
request cannot be processed, and we should go away.
src/login/logind-dbus.c
src/shared/bus-polkit.c