forked from pool/systemd
d76216e1f9
(please also push to 13.1, I want the same version as F20) - Add 0001-gpt-auto-generator-exit-immediately-if-in-container.patch: don't start gpt auto-generator in container (git). - Add 0001-manager-when-verifying-whether-clients-may-change-en.patch: fix reload check in selinux case (git). - Add 0001-logind-fix-bus-introspection-data-for-TakeControl.patch: fix introspection for TakeControl (git). - Add 0001-mount-check-for-NULL-before-reading-pm-what.patch: fix crash when parsing some incorrect unit (git). - Add 0001-shared-util-fix-off-by-one-error-in-tag_to_udev_node.patch: Fix udev rules parsing (git). - Add 0001-systemd-serialize-deserialize-forbid_restart-value.patch: Fix incorrect deserialization for forbid_restart (git). - Add 0001-core-unify-the-way-we-denote-serialization-attribute.patch: Ensure forbid_restart is named like other attributes (git). - Add 0001-journald-fix-minor-memory-leak.patch: fix memleak in journald (git). - Add 0001-do-not-accept-garbage-from-acpi-firmware-performance.patch: Improve ACPI firmware performance parsing (git). - Add 0001-journald-remove-rotated-file-from-hashmap-when-rotat.patch: Fix journal rotation (git). - Add 0001-login-fix-invalid-free-in-sd_session_get_vt.patch: Fix memory corruption in sd_session_get_vt (git). OBS-URL: https://build.opensuse.org/request/show/203387 OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=454
46 lines
1.8 KiB
Diff
46 lines
1.8 KiB
Diff
From a316932f5a627c1ef78f568fd5dfa579f12e76b2 Mon Sep 17 00:00:00 2001
|
|
From: Lennart Poettering <lennart@poettering.net>
|
|
Date: Fri, 4 Oct 2013 17:01:37 +0200
|
|
Subject: [PATCH] manager: when verifying whether clients may change
|
|
environment using selinux check for "reload" rather "reboot"
|
|
|
|
This appears to be a copy/paste error.
|
|
---
|
|
src/core/dbus-manager.c | 6 +++---
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/src/core/dbus-manager.c b/src/core/dbus-manager.c
|
|
index 676a07f..8f4d017 100644
|
|
--- a/src/core/dbus-manager.c
|
|
+++ b/src/core/dbus-manager.c
|
|
@@ -1397,7 +1397,7 @@ static DBusHandlerResult bus_manager_message_handler(DBusConnection *connection,
|
|
_cleanup_strv_free_ char **l = NULL;
|
|
char **e = NULL;
|
|
|
|
- SELINUX_ACCESS_CHECK(connection, message, "reboot");
|
|
+ SELINUX_ACCESS_CHECK(connection, message, "reload");
|
|
|
|
r = bus_parse_strv(message, &l);
|
|
if (r == -ENOMEM)
|
|
@@ -1424,7 +1424,7 @@ static DBusHandlerResult bus_manager_message_handler(DBusConnection *connection,
|
|
_cleanup_strv_free_ char **l = NULL;
|
|
char **e = NULL;
|
|
|
|
- SELINUX_ACCESS_CHECK(connection, message, "reboot");
|
|
+ SELINUX_ACCESS_CHECK(connection, message, "reload");
|
|
|
|
r = bus_parse_strv(message, &l);
|
|
if (r == -ENOMEM)
|
|
@@ -1452,7 +1452,7 @@ static DBusHandlerResult bus_manager_message_handler(DBusConnection *connection,
|
|
char **f = NULL;
|
|
DBusMessageIter iter;
|
|
|
|
- SELINUX_ACCESS_CHECK(connection, message, "reboot");
|
|
+ SELINUX_ACCESS_CHECK(connection, message, "reload");
|
|
|
|
if (!dbus_message_iter_init(message, &iter))
|
|
goto oom;
|
|
--
|
|
1.8.4
|
|
|