|
|
b12df0 |
From e1b18ab36b2457a4896e531f03713b198725c919 Mon Sep 17 00:00:00 2001
|
|
|
b12df0 |
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
|
|
|
b12df0 |
Date: Tue, 9 Mar 2021 09:03:58 +0100
|
|
|
b12df0 |
Subject: [PATCH] =?UTF-8?q?logind:=20add=20=E2=80=A6WithFlags=20methods=20?=
|
|
|
b12df0 |
=?UTF-8?q?to=20policy?=
|
|
|
b12df0 |
MIME-Version: 1.0
|
|
|
b12df0 |
Content-Type: text/plain; charset=UTF-8
|
|
|
b12df0 |
Content-Transfer-Encoding: 8bit
|
|
|
b12df0 |
|
|
|
b12df0 |
Without this, privilege escalation through polkit does not work, because all
|
|
|
b12df0 |
methods fail with permission errors.
|
|
|
b12df0 |
|
|
|
b12df0 |
Forgotten in 8885fed4e3a52cf1bf105e42043203c485ed9d92.
|
|
|
b12df0 |
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1933335.
|
|
|
b12df0 |
|
|
|
b12df0 |
(cherry picked from commit 2280db756eaff795091871feee8e47d4f6989a58)
|
|
|
b12df0 |
|
|
|
b12df0 |
Related: #1269726
|
|
|
b12df0 |
---
|
|
|
b12df0 |
src/login/org.freedesktop.login1.conf | 28 +++++++++++++++++++++++++++
|
|
|
b12df0 |
1 file changed, 28 insertions(+)
|
|
|
b12df0 |
|
|
|
b12df0 |
diff --git a/src/login/org.freedesktop.login1.conf b/src/login/org.freedesktop.login1.conf
|
|
|
b12df0 |
index f880f3e2da..dcde0c22c6 100644
|
|
|
b12df0 |
--- a/src/login/org.freedesktop.login1.conf
|
|
|
b12df0 |
+++ b/src/login/org.freedesktop.login1.conf
|
|
|
b12df0 |
@@ -130,30 +130,58 @@
|
|
|
b12df0 |
send_interface="org.freedesktop.login1.Manager"
|
|
|
b12df0 |
send_member="PowerOff"/>
|
|
|
b12df0 |
|
|
|
b12df0 |
+
|
|
|
b12df0 |
+ send_interface="org.freedesktop.login1.Manager"
|
|
|
b12df0 |
+ send_member="PowerOffWithFlags"/>
|
|
|
b12df0 |
+
|
|
|
b12df0 |
|
|
|
b12df0 |
send_interface="org.freedesktop.login1.Manager"
|
|
|
b12df0 |
send_member="Reboot"/>
|
|
|
b12df0 |
|
|
|
b12df0 |
+
|
|
|
b12df0 |
+ send_interface="org.freedesktop.login1.Manager"
|
|
|
b12df0 |
+ send_member="RebootWithFlags"/>
|
|
|
b12df0 |
+
|
|
|
b12df0 |
|
|
|
b12df0 |
send_interface="org.freedesktop.login1.Manager"
|
|
|
b12df0 |
send_member="Halt"/>
|
|
|
b12df0 |
|
|
|
b12df0 |
+
|
|
|
b12df0 |
+ send_interface="org.freedesktop.login1.Manager"
|
|
|
b12df0 |
+ send_member="HaltWithFlags"/>
|
|
|
b12df0 |
+
|
|
|
b12df0 |
|
|
|
b12df0 |
send_interface="org.freedesktop.login1.Manager"
|
|
|
b12df0 |
send_member="Suspend"/>
|
|
|
b12df0 |
|
|
|
b12df0 |
+
|
|
|
b12df0 |
+ send_interface="org.freedesktop.login1.Manager"
|
|
|
b12df0 |
+ send_member="SuspendWithFlags"/>
|
|
|
b12df0 |
+
|
|
|
b12df0 |
|
|
|
b12df0 |
send_interface="org.freedesktop.login1.Manager"
|
|
|
b12df0 |
send_member="Hibernate"/>
|
|
|
b12df0 |
|
|
|
b12df0 |
+
|
|
|
b12df0 |
+ send_interface="org.freedesktop.login1.Manager"
|
|
|
b12df0 |
+ send_member="HibernateWithFlags"/>
|
|
|
b12df0 |
+
|
|
|
b12df0 |
|
|
|
b12df0 |
send_interface="org.freedesktop.login1.Manager"
|
|
|
b12df0 |
send_member="HybridSleep"/>
|
|
|
b12df0 |
|
|
|
b12df0 |
+
|
|
|
b12df0 |
+ send_interface="org.freedesktop.login1.Manager"
|
|
|
b12df0 |
+ send_member="HybridSleepWithFlags"/>
|
|
|
b12df0 |
+
|
|
|
b12df0 |
|
|
|
b12df0 |
send_interface="org.freedesktop.login1.Manager"
|
|
|
b12df0 |
send_member="SuspendThenHibernate"/>
|
|
|
b12df0 |
|
|
|
b12df0 |
+
|
|
|
b12df0 |
+ send_interface="org.freedesktop.login1.Manager"
|
|
|
b12df0 |
+ send_member="SuspendThenHibernateWithFlags"/>
|
|
|
b12df0 |
+
|
|
|
b12df0 |
|
|
|
b12df0 |
send_interface="org.freedesktop.login1.Manager"
|
|
|
b12df0 |
send_member="CanPowerOff"/>
|