diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-05-17 20:33:47 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-05-18 20:52:49 +0900 |
commit | a349eb10d3c3a31cd47198cbf08e4f0dfaffef1d (patch) | |
tree | 8a3c4b4339d9cd99c7463c0d7fb2666e0f231066 /src/shared | |
parent | 2bcc2523711e69e6daa744641e56ed8b78646676 (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.c | 3 |
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; } |