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 834057 Details for
Bug 1022762
[PATCH] system-config-kdump doesn't work because systemd doesn't use unit path in check
[?]
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 v2] selinux: Check access vector for enable and disable perm for each unit file
0001-selinux-Check-access-vector-for-enable-and-disable-p.patch (text/plain), 1.69 KB, created by
Lubomir Rintel
on 2013-12-08 12:43:42 UTC
(
hide
)
Description:
[PATCH v2] selinux: Check access vector for enable and disable perm for each unit file
Filename:
MIME Type:
Creator:
Lubomir Rintel
Created:
2013-12-08 12:43:42 UTC
Size:
1.69 KB
patch
obsolete
>From 4b7699f1f7c94d4344c228e87c0bea1d63cca170 Mon Sep 17 00:00:00 2001 >From: Lubomir Rintel <lkundrak@v3.sk> >Date: Fri, 6 Dec 2013 14:05:49 +0100 >Subject: [PATCH v2] selinux: Check access vector for enable and disable perm for > each unit file > >--- >Changes in v2: > - Made conditional for HAVE_SELINUX > - Rebased against git tip > - Don't generate access vector checks for nonexistent units > > src/core/dbus-manager.c | 18 ++++++++++++++---- > 1 file changed, 14 insertions(+), 4 deletions(-) > >diff --git a/src/core/dbus-manager.c b/src/core/dbus-manager.c >index a2707ee..1a7432f 100644 >--- a/src/core/dbus-manager.c >+++ b/src/core/dbus-manager.c >@@ -1405,6 +1405,7 @@ static int method_enable_unit_files_generic( > sd_bus_error *error) { > > _cleanup_strv_free_ char **l = NULL; >+ char **i; > UnitFileChange *changes = NULL; > unsigned n_changes = 0; > UnitFileScope scope; >@@ -1414,14 +1415,23 @@ static int method_enable_unit_files_generic( > assert(message); > assert(m); > >- r = selinux_access_check(bus, message, verb, error); >- if (r < 0) >- return r; >- > r = sd_bus_message_read_strv(message, &l); > if (r < 0) > return r; > >+#ifdef HAVE_SELINUX >+ STRV_FOREACH(i, l) { >+ Unit *u; >+ >+ u = manager_get_unit(m, *i); >+ if (u) { >+ r = selinux_unit_access_check(u, bus, message, verb, error); >+ if (r < 0) >+ return r; >+ } >+ } >+#endif >+ > r = sd_bus_message_read(message, "bb", &runtime, &force); > if (r < 0) > return r; >-- >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 Raw
Actions:
View
Attachments on
bug 1022762
:
815594
|
829782
| 834057