summaryrefslogtreecommitdiff
path: root/src/login/logind.h
diff options
context:
space:
mode:
authorSven Eden <yamakuzure@gmx.net>2017-01-26 08:30:04 +0100
committerSven Eden <yamakuzure@gmx.net>2017-03-14 10:23:04 +0100
commitfaf2e887be42215c1999950d16d1975e70bbdfe9 (patch)
treec2b75d145a54baa856dae41673d2d02e0db25848 /src/login/logind.h
parent56c4f5eceb1e77ac537960e255076712fcd0e7e5 (diff)
[Patch 3/3] Add cgroups initialization and handling
Let elogind setup cgroups support on its manager initialization and free the cgroups subsystem when the manager is destroyed.
Diffstat (limited to 'src/login/logind.h')
-rw-r--r--src/login/logind.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/login/logind.h b/src/login/logind.h
index 306709e5b..c0ae52359 100644
--- a/src/login/logind.h
+++ b/src/login/logind.h
@@ -27,6 +27,8 @@
#include "config.h"
#include "sd-event.h"
#include "sd-bus.h"
+#include "cgroup-util.h"
+#include "path-lookup.h"
#include "list.h"
#include "hashmap.h"
#include "set.h"
@@ -62,6 +64,18 @@ struct Manager {
sd_event_source *udev_vcsa_event_source;
sd_event_source *udev_button_event_source;
+ /* Make sure the user cannot accidentally unmount our cgroup
+ * file system */
+ int pin_cgroupfs_fd;
+
+ /* Flags */
+ ManagerRunningAs running_as;
+ bool test_run:1;
+
+ /* Data specific to the cgroup subsystem */
+ CGroupMask cgroup_supported;
+ char *cgroup_root;
+
int console_active_fd;
unsigned n_autovts;