chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
selinux: rework selinux access check logic
[elogind.git]
/
src
/
core
/
dbus-timer.c
diff --git
a/src/core/dbus-timer.c
b/src/core/dbus-timer.c
index c76c2e0500bff23b49f04eb3530d3e273004f516..84b823c9a4492952096678ef540f605cfad1c001 100644
(file)
--- a/
src/core/dbus-timer.c
+++ b/
src/core/dbus-timer.c
@@
-25,6
+25,7
@@
#include "dbus-timer.h"
#include "dbus-execute.h"
#include "dbus-common.h"
#include "dbus-timer.h"
#include "dbus-execute.h"
#include "dbus-common.h"
+#include "selinux-access.h"
#define BUS_TIMER_INTERFACE \
" <interface name=\"org.freedesktop.systemd1.Timer\">\n" \
#define BUS_TIMER_INTERFACE \
" <interface name=\"org.freedesktop.systemd1.Timer\">\n" \
@@
-133,5
+134,7
@@
DBusHandlerResult bus_timer_message_handler(Unit *u, DBusConnection *c, DBusMess
{ 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);
}