chiark / gitweb /
basic: modernize conf-files.c a bit
[elogind.git] / src / basic / capability-util.c
index 0eb5c03d65601f6f457675f30564c084b0c5c80f..3e1306470b146bbf2613fb3d9175267b7507f111 100644 (file)
@@ -22,6 +22,7 @@
 #include <errno.h>
 #include <grp.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <sys/capability.h>
 #include <sys/prctl.h>
 #include <unistd.h>
@@ -34,6 +35,7 @@
 #include "parse-util.h"
 #include "util.h"
 
+#if 0 /// UNNEEDED by elogind
 int have_effective_cap(int value) {
         _cleanup_cap_free_ cap_t cap;
         cap_flag_value_t fv;
@@ -47,6 +49,7 @@ int have_effective_cap(int value) {
         else
                 return fv == CAP_SET;
 }
+#endif // 0
 
 unsigned long cap_last_cap(void) {
         static thread_local unsigned long saved;
@@ -95,6 +98,7 @@ unsigned long cap_last_cap(void) {
         return p;
 }
 
+#if 0 /// UNNEEDED by elogind
 int capability_bounding_set_drop(uint64_t drop, bool right_now) {
         _cleanup_cap_free_ cap_t after_cap = NULL;
         cap_flag_value_t fv;
@@ -305,3 +309,4 @@ int drop_capability(cap_value_t cv) {
 
         return 0;
 }
+#endif // 0