chiark / gitweb /
timesyncd: run timesyncd as unpriviliged user "systemd-timesync" (but still with...
[elogind.git] / src / shared / capability.c
index f8ee1c6838b63d00d1ad259c95b16dbd79e6e084..b49c5140097542bf8d54899dcef6e3b817d029c8 100644 (file)
@@ -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;
 }