logind: respect SD_LOGIND_ROOT_CHECK_INHIBITORS with weak blockers (#34969)
authorLuca Boccassi <bluca@debian.org>
Sat, 2 Nov 2024 11:27:28 +0000 (11:27 +0000)
committerGitHub <noreply@github.com>
Sat, 2 Nov 2024 11:27:28 +0000 (11:27 +0000)
commitc1669691374f29e905e5342885774de06429fe9c
treeaf4eec20369b4053607eb752626f36ef327f7ea9
parentacc35e51299097cf3f3c466c825a045d0efde0dd
parent93445c2e8952485ac818d9ea03fa6b21179ef0f7
logind: respect SD_LOGIND_ROOT_CHECK_INHIBITORS with weak blockers (#34969)

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