From 2e4596a0178effae52033942504f9eb02afb0140 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Wed, 26 Jun 2024 12:27:10 +0200 Subject: [PATCH] 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/login/org.freedesktop.login1.policy b/src/login/org.freedesktop.login1.policy index 012ee144832..226bb4cda43 100644 --- a/src/login/org.freedesktop.login1.policy +++ b/src/login/org.freedesktop.login1.policy @@ -22,7 +22,7 @@ Allow applications to inhibit system shutdown Authentication is required for an application to inhibit system shutdown. - no + auth_admin_keep yes yes @@ -44,7 +44,7 @@ Allow applications to inhibit system sleep Authentication is required for an application to inhibit system sleep. - no + auth_admin_keep yes yes -- 2.47.3