|
|
26f189 |
From 763eaa49343acdda5ff359012e8cc49c9ffc8e81 Mon Sep 17 00:00:00 2001
|
|
|
26f189 |
From: Vincent Bernat <vincent@bernat.ch>
|
|
|
26f189 |
Date: Tue, 23 Nov 2021 06:50:59 +0100
|
|
|
26f189 |
Subject: [PATCH] dbus: fix policy to not be overly broad
|
|
|
26f189 |
|
|
|
26f189 |
The DBus policy did not restrict the message destination, allowing any
|
|
|
26f189 |
user to inspect and manipulate any property.
|
|
|
26f189 |
|
|
|
26f189 |
Signed-off-by: Vincent Bernat <vincent@bernat.ch>
|
|
|
26f189 |
---
|
|
|
26f189 |
keepalived/dbus/org.keepalived.Vrrp1.conf | 13 ++++++++-----
|
|
|
26f189 |
1 file changed, 8 insertions(+), 5 deletions(-)
|
|
|
26f189 |
|
|
|
26f189 |
diff --git a/keepalived/dbus/org.keepalived.Vrrp1.conf b/keepalived/dbus/org.keepalived.Vrrp1.conf
|
|
|
26f189 |
index 2b78a575..b5ced608 100644
|
|
|
26f189 |
--- a/keepalived/dbus/org.keepalived.Vrrp1.conf
|
|
|
26f189 |
+++ b/keepalived/dbus/org.keepalived.Vrrp1.conf
|
|
|
26f189 |
@@ -3,12 +3,15 @@
|
|
|
26f189 |
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
|
|
|
26f189 |
<busconfig>
|
|
|
26f189 |
<policy user="root">
|
|
|
26f189 |
- <allow own="org.keepalived.Vrrp1"/>
|
|
|
26f189 |
- <allow send_destination="org.keepalived.Vrrp1"/>
|
|
|
26f189 |
+ <allow own="org.keepalived.Vrrp1" />
|
|
|
26f189 |
+ <allow send_destination="org.keepalived.Vrrp1" />
|
|
|
26f189 |
</policy>
|
|
|
26f189 |
<policy context="default">
|
|
|
26f189 |
- <allow send_interface="org.freedesktop.DBus.Introspectable" />
|
|
|
26f189 |
- <allow send_interface="org.freedesktop.DBus.Peer" />
|
|
|
26f189 |
- <allow send_interface="org.freedesktop.DBus.Properties" />
|
|
|
26f189 |
+
|
|
|
26f189 |
+ send_interface="org.freedesktop.DBus.Introspectable" />
|
|
|
26f189 |
+
|
|
|
26f189 |
+ send_interface="org.freedesktop.DBus.Peer" />
|
|
|
26f189 |
+
|
|
|
26f189 |
+ send_interface="org.freedesktop.DBus.Properties" />
|
|
|
26f189 |
</policy>
|
|
|
26f189 |
</busconfig>
|
|
|
26f189 |
--
|
|
|
26f189 |
2.33.1
|
|
|
26f189 |
|