Remove bogus build-dependency on libcap by using linux uapi header
and libc-provided syscall wrappers for capget/capset.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
#define _GNU_SOURCE 1
#include <syslog.h>
#include <sys/prctl.h>
-#include <sys/capability.h>
-
#include <libubox/blobmsg.h>
#include <libubox/blobmsg_json.h>
#define _JAIL_CAPABILITIES_H_
#include <libubox/blobmsg.h>
+#include <linux/capability.h>
struct jail_capset {
uint64_t bounding;
int parseOCIcapabilities(struct jail_capset *capset, struct blob_attr *msg);
int applyOCIcapabilities(struct jail_capset capset);
+/* capget/capset syscall wrappers are provided by libc */
+extern int capget(cap_user_header_t header, cap_user_data_t data);
+extern int capset(cap_user_header_t header, const cap_user_data_t data);
+
#endif