chiark / gitweb /
Prep v221: Update and clean up build system to sync with upstream
[elogind.git] / src / basic / capability.c
similarity index 99%
rename from src/shared/capability.c
rename to src/basic/capability.c
index 8dbe4da5bbbe1280518e81bca9af166549f06bf1..3963753d4de8630ceab8c0673a0b8d5231fa7def 100644 (file)
@@ -224,6 +224,8 @@ int capability_bounding_set_drop_usermode(uint64_t drop) {
         return r;
 }
 
+/// UNNEEDED by elogind
+#if 0
 int drop_privileges(uid_t uid, gid_t gid, uint64_t keep_capabilities) {
         _cleanup_cap_free_ cap_t d = NULL;
         unsigned i, j = 0;
@@ -305,3 +307,4 @@ int drop_capability(cap_value_t cv) {
 
         return 0;
 }
+#endif // 0