anitazha / rpms / systemd

Forked from rpms/systemd 3 years ago
Clone

Blame SOURCES/0015-manager-when-verifying-whether-clients-may-change-en.patch

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