ryantimwilson / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone
65878a
From f4d7751752e7d2d2393078daef342e54368468d7 Mon Sep 17 00:00:00 2001
65878a
From: Lennart Poettering <lennart@poettering.net>
65878a
Date: Fri, 4 Oct 2013 17:01:37 +0200
65878a
Subject: [PATCH] manager: when verifying whether clients may change
65878a
 environment using selinux check for "reload" rather "reboot"
65878a
65878a
This appears to be a copy/paste error.
65878a
---
65878a
 src/core/dbus-manager.c | 6 +++---
65878a
 1 file changed, 3 insertions(+), 3 deletions(-)
65878a
65878a
diff --git a/src/core/dbus-manager.c b/src/core/dbus-manager.c
65878a
index 676a07f..8f4d017 100644
65878a
--- a/src/core/dbus-manager.c
65878a
+++ b/src/core/dbus-manager.c
65878a
@@ -1397,7 +1397,7 @@ static DBusHandlerResult bus_manager_message_handler(DBusConnection *connection,
65878a
                 _cleanup_strv_free_ char **l = NULL;
65878a
                 char **e = NULL;
65878a
 
65878a
-                SELINUX_ACCESS_CHECK(connection, message, "reboot");
65878a
+                SELINUX_ACCESS_CHECK(connection, message, "reload");
65878a
 
65878a
                 r = bus_parse_strv(message, &l);
65878a
                 if (r == -ENOMEM)
65878a
@@ -1424,7 +1424,7 @@ static DBusHandlerResult bus_manager_message_handler(DBusConnection *connection,
65878a
                 _cleanup_strv_free_ char **l = NULL;
65878a
                 char **e = NULL;
65878a
 
65878a
-                SELINUX_ACCESS_CHECK(connection, message, "reboot");
65878a
+                SELINUX_ACCESS_CHECK(connection, message, "reload");
65878a
 
65878a
                 r = bus_parse_strv(message, &l);
65878a
                 if (r == -ENOMEM)
65878a
@@ -1452,7 +1452,7 @@ static DBusHandlerResult bus_manager_message_handler(DBusConnection *connection,
65878a
                 char **f = NULL;
65878a
                 DBusMessageIter iter;
65878a
 
65878a
-                SELINUX_ACCESS_CHECK(connection, message, "reboot");
65878a
+                SELINUX_ACCESS_CHECK(connection, message, "reload");
65878a
 
65878a
                 if (!dbus_message_iter_init(message, &iter))
65878a
                         goto oom;