]> git.ipfire.org Git - thirdparty/systemd.git/commit
polkit: allow non-local users to block sleep and shutdown 33491/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 26 Jun 2024 10:27:10 +0000 (12:27 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 26 Jun 2024 13:04:06 +0000 (15:04 +0200)
commit2e4596a0178effae52033942504f9eb02afb0140
tree933a5789e296e45c8b06f9267fe98cac1253652c
parenta87b7aa1a1c9a02c53d6766fe9a1278deb81a4f4
polkit: allow non-local users to block sleep and shutdown

We already had 'auth_admin_keep' for org.freedesktop.login1.reboot and similar
actions. If a user is allowed to perform an action, I think they should be
allowed to _block_ the same action. Guarding this by auth_admin follows the
general principle of not allowing fully unprivileged users to have too much say
over the machine.
src/login/org.freedesktop.login1.policy