#include <getopt.h>
#include <sys/param.h>
-#include "linuxcaps.h"
-
#define ENSC_WRAPPERS_PREFIX "reducecap: "
#define ENSC_WRAPPERS_VSERVER 1
#define ENSC_WRAPPERS_UNISTD 1
#include <wrappers.h>
+ // dirty hack...
+#define __u32 uint32_t
+#define __user
+#include "linuxcaps.h"
+#undef __user
+#undef __u32
+
#define CMD_HELP 0x1000
#define CMD_VERSION 0x1001
bool do_show = false;
uint32_t flags = 0;
pid_t pid = 0;
+#ifdef VC_ENABLE_API_LEGACY
bool show_obsolete_warning = true;
+#endif
while (1) {
int c = getopt_long(argc, argv, "+", CMDLINE_OPTIONS, 0);
switch (c) {
case CMD_HELP : showHelp(1, argv[0], 0);
case CMD_VERSION : showVersion();
- case CMD_SECURE : remove = vc_get_insecurecaps(); break;
+ case CMD_SECURE : remove = vc_get_insecurebcaps(); break;
case CMD_SHOW : do_show = true; break;
case CMD_PID : pid = atoi(optarg); break;
case CMD_CAP : remove = getCap(optarg); break;