#include "fileio.h"
#include "capability.h"
+/// UNNEEDED by elogind
+#if 0
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;
}
+/// UNNEEDED by elogind
+#if 0
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 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;