logind: add …WithFlags methods to policy
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 9 Mar 2021 08:03:58 +0000 (09:03 +0100)
committerThe Plumber <50238977+systemd-rhel-bot@users.noreply.github.com>
Fri, 23 Jul 2021 14:21:04 +0000 (16:21 +0200)
commite1b18ab36b2457a4896e531f03713b198725c919
tree85e56bffe8e45c1d3600d8b8fed32e6d0a033556
parentd375206fe822903b16f3b9006ea47ffd938d88cb
logind: add …WithFlags methods to policy

Without this, privilege escalation through polkit does not work, because all
methods fail with permission errors.

Forgotten in 8885fed4e3a52cf1bf105e42043203c485ed9d92.
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1933335.

(cherry picked from commit 2280db756eaff795091871feee8e47d4f6989a58)

Related: #1269726
src/login/org.freedesktop.login1.conf