summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-05-17 20:33:47 +0200
committerLennart Poettering <lennart@poettering.net>2014-05-18 20:52:49 +0900
commita349eb10d3c3a31cd47198cbf08e4f0dfaffef1d (patch)
tree8a3c4b4339d9cd99c7463c0d7fb2666e0f231066 /src/shared
parent2bcc2523711e69e6daa744641e56ed8b78646676 (diff)
timesyncd: run timesyncd as unpriviliged user "systemd-timesync" (but still with CAP_SYS_TIME)
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/capability.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/capability.c b/src/shared/capability.c
index f8ee1c6838..b49c514009 100644
--- a/src/shared/capability.c
+++ b/src/shared/capability.c
@@ -156,7 +156,8 @@ int capability_bounding_set_drop(uint64_t drop, bool right_now) {
r = 0;
finish:
- cap_set_proc(after_cap);
+ if (cap_set_proc(after_cap) < 0)
+ return -errno;
return r;
}