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