#include <errno.h>
#include <grp.h>
#include <stdio.h>
+#include <stdlib.h>
#include <sys/capability.h>
#include <sys/prctl.h>
#include <unistd.h>
#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;
else
return fv == CAP_SET;
}
+#endif // 0
unsigned long cap_last_cap(void) {
static thread_local unsigned long saved;
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;
return 0;
}
+#endif // 0