Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 863283 Details for
Bug 1065002
systemd enable <service> does not work without prior start
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Proper fix
0001-dbus-manager-fix-selinux-check-for-enable-disable.patch (text/plain), 3.22 KB, created by
Lukáš Nykrýn
on 2014-02-14 14:14:25 UTC
(
hide
)
Description:
Proper fix
Filename:
MIME Type:
Creator:
Lukáš Nykrýn
Created:
2014-02-14 14:14:25 UTC
Size:
3.22 KB
patch
obsolete
>From b2e1656f90f9fe7d6af19ad8cf0a8c75a5dcc3a4 Mon Sep 17 00:00:00 2001 >From: Lukas Nykryn <lnykryn@redhat.com> >Date: Fri, 14 Feb 2014 15:03:47 +0100 >Subject: [PATCH] dbus-manager: fix selinux check for enable/disable > >--- > src/core/dbus-manager.c | 26 ++++---------------------- > 1 file changed, 4 insertions(+), 22 deletions(-) > >diff --git a/src/core/dbus-manager.c b/src/core/dbus-manager.c >index 60004e1..9ec5bfb 100644 >--- a/src/core/dbus-manager.c >+++ b/src/core/dbus-manager.c >@@ -1589,6 +1589,8 @@ static DBusHandlerResult bus_manager_message_handler(DBusConnection *connection, > dbus_bool_t runtime, force; > int carries_install_info = -1; > >+ SELINUX_ACCESS_CHECK(connection, message, streq(member, "MaskUnitFiles") ? "disable" : "enable"); >+ > if (!dbus_message_iter_init(message, &iter)) > goto oom; > >@@ -1600,17 +1602,6 @@ static DBusHandlerResult bus_manager_message_handler(DBusConnection *connection, > return bus_send_error_reply(connection, message, NULL, r); > } > >- STRV_FOREACH(i, l) { >- Unit *u; >- >- u = manager_get_unit(m, *i); >- if (!u) { >- dbus_set_error(&error, BUS_ERROR_NO_SUCH_UNIT, "Unit %s is not loaded.", *i); >- return bus_send_error_reply(connection, message, &error, -ENOENT); >- } >- SELINUX_UNIT_ACCESS_CHECK(u, connection, message, streq(member, "MaskUnitFiles") ? "disable" : "enable"); >- } >- > if (!dbus_message_iter_next(&iter) || > bus_iter_get_basic_and_next(&iter, DBUS_TYPE_BOOLEAN, &runtime, true) < 0 || > bus_iter_get_basic_and_next(&iter, DBUS_TYPE_BOOLEAN, &force, false) < 0) { >@@ -1661,6 +1652,8 @@ static DBusHandlerResult bus_manager_message_handler(DBusConnection *connection, > unsigned n_changes = 0; > dbus_bool_t runtime; > >+ SELINUX_ACCESS_CHECK(connection, message, streq(member, "UnmaskUnitFiles") ? "enable" : "disable"); >+ > if (!dbus_message_iter_init(message, &iter)) > goto oom; > >@@ -1678,17 +1671,6 @@ static DBusHandlerResult bus_manager_message_handler(DBusConnection *connection, > return bus_send_error_reply(connection, message, NULL, -EIO); > } > >- STRV_FOREACH(i, l) { >- Unit *u; >- >- u = manager_get_unit(m, *i); >- if (!u) { >- dbus_set_error(&error, BUS_ERROR_NO_SUCH_UNIT, "Unit %s is not loaded.", *i); >- return bus_send_error_reply(connection, message, &error, -ENOENT); >- } >- SELINUX_UNIT_ACCESS_CHECK(u, connection, message, streq(member, "UnmaskUnitFiles") ? "enable" : "disable"); >- } >- > if (streq(member, "DisableUnitFiles")) > r = unit_file_disable(scope, runtime, NULL, l, &changes, &n_changes); > else if (streq(member, "UnmaskUnitFiles")) >-- >1.8.4.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1065002
: 863283