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