mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-16 21:30:52 +00:00
dbus: expose cgroup properties in introspection everywhere
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
#include "dbus-common.h"
|
||||
#include "cgroup.h"
|
||||
|
||||
#define BUS_CGROUP_CONTEXT_INTERFACE \
|
||||
#define BUS_CGROUP_CONTEXT_INTERFACE \
|
||||
" <property name=\"CPUAccounting\" type=\"b\" access=\"read\"/>\n" \
|
||||
" <property name=\"CPUShares\" type=\"t\" access=\"read\"/>\n" \
|
||||
" <property name=\"BlockIOAccounting\" type=\"b\" access=\"read\"/>\n" \
|
||||
|
||||
@@ -41,6 +41,7 @@
|
||||
BUS_EXEC_COMMAND_INTERFACE("ExecRemount") \
|
||||
BUS_EXEC_CONTEXT_INTERFACE \
|
||||
BUS_KILL_CONTEXT_INTERFACE \
|
||||
BUS_CGROUP_CONTEXT_INTERFACE \
|
||||
" <property name=\"ControlPID\" type=\"u\" access=\"read\"/>\n" \
|
||||
" <property name=\"DirectoryMode\" type=\"u\" access=\"read\"/>\n" \
|
||||
" <property name=\"Result\" type=\"s\" access=\"read\"/>\n" \
|
||||
|
||||
@@ -54,6 +54,7 @@
|
||||
BUS_EXEC_COMMAND_INTERFACE("ExecStopPost") \
|
||||
BUS_EXEC_CONTEXT_INTERFACE \
|
||||
BUS_KILL_CONTEXT_INTERFACE \
|
||||
BUS_CGROUP_CONTEXT_INTERFACE \
|
||||
" <property name=\"PermissionsStartOnly\" type=\"b\" access=\"read\"/>\n" \
|
||||
" <property name=\"RootDirectoryStartOnly\" type=\"b\" access=\"read\"/>\n" \
|
||||
" <property name=\"RemainAfterExit\" type=\"b\" access=\"read\"/>\n" \
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
|
||||
#define BUS_SLICE_INTERFACE \
|
||||
" <interface name=\"org.freedesktop.systemd1.Slice\">\n" \
|
||||
BUS_CGROUP_CONTEXT_INTERFACE \
|
||||
" </interface>\n"
|
||||
|
||||
#define INTROSPECTION \
|
||||
|
||||
@@ -40,6 +40,7 @@
|
||||
BUS_EXEC_COMMAND_INTERFACE("ExecStopPost") \
|
||||
BUS_EXEC_CONTEXT_INTERFACE \
|
||||
BUS_KILL_CONTEXT_INTERFACE \
|
||||
BUS_CGROUP_CONTEXT_INTERFACE \
|
||||
" <property name=\"ControlPID\" type=\"u\" access=\"read\"/>\n" \
|
||||
" <property name=\"BindToDevice\" type=\"s\" access=\"read\"/>\n" \
|
||||
" <property name=\"DirectoryMode\" type=\"u\" access=\"read\"/>\n" \
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
BUS_EXEC_COMMAND_INTERFACE("ExecDeactivate") \
|
||||
BUS_EXEC_CONTEXT_INTERFACE \
|
||||
BUS_KILL_CONTEXT_INTERFACE \
|
||||
BUS_CGROUP_CONTEXT_INTERFACE \
|
||||
" <property name=\"ControlPID\" type=\"u\" access=\"read\"/>\n" \
|
||||
" <property name=\"Result\" type=\"s\" access=\"read\"/>\n" \
|
||||
" </interface>\n"
|
||||
|
||||
Reference in New Issue
Block a user