reworked the capability.h stuff
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Thu, 27 Jan 2005 20:38:35 +0000 (20:38 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Thu, 27 Jan 2005 20:38:35 +0000 (20:38 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1823 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/src/reducecap.c
util-vserver/src/vserver-info.c

index 824e7fd..1dca269 100644 (file)
 #include <wrappers.h>
 
 
-  // dirty hack...
-#define  __u32 uint32_t
-#define  __user
-#include "linuxcaps.h"
-#undef   __user
-#undef   __u32
+#undef _POSIX_SOURCE
+#include "capability-compat.h"
+
 
 #define CMD_HELP       0x1000
 #define CMD_VERSION    0x1001
@@ -143,9 +140,6 @@ CMDLINE_OPTIONS[] = {
 
 int wrapper_exit_code  = 255;
 
-extern int capget (struct __user_cap_header_struct *, struct __user_cap_data_struct *);
-extern int capset (struct __user_cap_header_struct *, struct __user_cap_data_struct *);
-
 static void
 showHelp(int fd, char const *cmd, int res)
 {
index 26f3d70..b500cd6 100644 (file)
 #include <dirent.h>
 #include <strings.h>
 
-#include <sys/capability.h>
-
-
 #define ENSC_WRAPPERS_FCNTL    1
 #define ENSC_WRAPPERS_IO       1
 #define ENSC_WRAPPERS_UNISTD   1
 #define ENSC_WRAPPERS_VSERVER  1
 #include <wrappers.h>
 
+#undef _POSIX_SOURCE
+#include "capability-compat.h"
+
 typedef enum { tgNONE,tgCONTEXT, tgID, tgRUNNING,
               tgVDIR, tgNAME, tgCFGDIR, tgAPPDIR,
               tgAPIVER, tgPXID,