logind: respect SD_LOGIND_ROOT_CHECK_INHIBITORS with weak blockers
authorLuca Boccassi <luca.boccassi@gmail.com>
Thu, 31 Oct 2024 16:02:38 +0000 (16:02 +0000)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 1 Nov 2024 15:43:14 +0000 (15:43 +0000)
commit845f95b9e003f8386f80f4b7c157c805f3a46ad0
tree8b13c751f237026219702b4e11f78002e9a5f0ad
parent74a17f875f5ba683a5bb61ae0445974d4808d5e2
logind: respect SD_LOGIND_ROOT_CHECK_INHIBITORS with weak blockers

The check for the old flag was not restored when the weak
blocker was added, add it back. Also skip polkit check for
root for the weak blocker, to keep compatibility with the
previous behaviour.

Partially fixes https://github.com/systemd/systemd/issues/34091

Follow-up for 804874d26ac73e0af07c4c5d7165c95372f03f6d
src/login/logind-dbus.c