chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Smack: Test if smack is enabled before mounting
[elogind.git]
/
src
/
core
/
dbus-target.c
diff --git
a/src/core/dbus-target.c
b/src/core/dbus-target.c
index 67ffff870f87a85d4910af416c8b3eafee56ea89..6a775506cc737a6b7d2e4ef7734635fc81115d6d 100644
(file)
--- a/
src/core/dbus-target.c
+++ b/
src/core/dbus-target.c
@@
-24,6
+24,7
@@
#include "dbus-unit.h"
#include "dbus-target.h"
#include "dbus-common.h"
#include "dbus-unit.h"
#include "dbus-target.h"
#include "dbus-common.h"
+#include "selinux-access.h"
#define BUS_TARGET_INTERFACE \
" <interface name=\"org.freedesktop.systemd1.Target\">\n" \
#define BUS_TARGET_INTERFACE \
" <interface name=\"org.freedesktop.systemd1.Target\">\n" \
@@
-51,5
+52,7
@@
DBusHandlerResult bus_target_message_handler(Unit *u, DBusConnection *c, DBusMes
{ NULL, }
};
{ NULL, }
};
+ SELINUX_UNIT_ACCESS_CHECK(u, c, message, "status");
+
return bus_default_message_handler(c, message, INTROSPECTION, INTERFACES_LIST, bps);
}
return bus_default_message_handler(c, message, INTROSPECTION, INTERFACES_LIST, bps);
}