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