summaryrefslogtreecommitdiff
path: root/src/core/cgroup.c
diff options
context:
space:
mode:
authorDaniel Mack <github@zonque.org>2015-09-09 10:08:44 +0200
committerDaniel Mack <github@zonque.org>2015-09-09 10:08:44 +0200
commit94766ad2ba705d3d545b2fa87616ca12c0e301ac (patch)
treeda8d15d04bcc8029556fb32438346e93b265f36b /src/core/cgroup.c
parent0fa7d1f5be847d4804eb3bf6a4c10333ea14e0bc (diff)
parent38c2ef1d55c034c6e06c25f7eff22a651edc5aec (diff)
Merge pull request #1210 from poettering/import-fixes
cgroup fix, nspawn fix, plus change to download .nspawn files in importd
Diffstat (limited to 'src/core/cgroup.c')
-rw-r--r--src/core/cgroup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/cgroup.c b/src/core/cgroup.c
index 9a025cf929..baa7cc5488 100644
--- a/src/core/cgroup.c
+++ b/src/core/cgroup.c
@@ -404,7 +404,7 @@ void cgroup_context_apply(CGroupContext *c, CGroupMask mask, const char *path, M
"Failed to set memory.limit_in_bytes/memory.max on %s: %m", path);
}
- if ((mask & CGROUP_MASK_DEVICE) && !is_root) {
+ if ((mask & CGROUP_MASK_DEVICES) && !is_root) {
CGroupDeviceAllow *a;
/* Changing the devices list of a populated cgroup
@@ -492,7 +492,7 @@ CGroupMask cgroup_context_get_mask(CGroupContext *c) {
if (c->device_allow ||
c->device_policy != CGROUP_AUTO)
- mask |= CGROUP_MASK_DEVICE;
+ mask |= CGROUP_MASK_DEVICES;
return mask;
}