summaryrefslogtreecommitdiff
path: root/src/core/unit.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-01-12 15:16:24 +0100
committerLennart Poettering <lennart@poettering.net>2016-01-12 15:16:24 +0100
commit1f52a79d4eb0216bf1f2d96539609f02d8bb9e71 (patch)
treed175e992048df607a2e851d51ca738e4f0e53d38 /src/core/unit.c
parent4a6a24be180337f405591c7fa4fa112a765c53bb (diff)
parentece87975a97509b48a01b1e3da2e99c1c7dfd77a (diff)
Merge pull request #2265 from ipuustin/ambient
capabilities: added support for ambient capabilities.
Diffstat (limited to 'src/core/unit.c')
-rw-r--r--src/core/unit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/unit.c b/src/core/unit.c
index b977ac7f0c..e1bc6c75cb 100644
--- a/src/core/unit.c
+++ b/src/core/unit.c
@@ -3231,7 +3231,7 @@ int unit_patch_contexts(Unit *u) {
ec->no_new_privileges = true;
if (ec->private_devices)
- ec->capability_bounding_set_drop |= (uint64_t) 1ULL << (uint64_t) CAP_MKNOD;
+ ec->capability_bounding_set &= ~(UINT64_C(1) << CAP_MKNOD);
}
cc = unit_get_cgroup_context(u);