Correzioni varie e ampliamenti sulla gestione delle capabilities.
[gapil.git] / listati / cap_user_header_t.h
index 791aa9e6b0eb0ed71ab4785cf9b1b0e0d225f850..6c260bf88dabf0e4ddf1d422ff6682fbf0bd5fd8 100644 (file)
@@ -1,12 +1,19 @@
-#define _LINUX_CAPABILITY_VERSION  0x19980330
+#define _LINUX_CAPABILITY_VERSION_1  0x19980330
+#define _LINUX_CAPABILITY_U32S_1     1
+
+#define _LINUX_CAPABILITY_VERSION_2  0x20071026  /* deprecated - use v3 */
+#define _LINUX_CAPABILITY_U32S_2     2
+
+#define _LINUX_CAPABILITY_VERSION_3  0x20080522
+#define _LINUX_CAPABILITY_U32S_3     2
 
 typedef struct __user_cap_header_struct {
-       int version;
+       __u32 version;
        int pid;
 } *cap_user_header_t;
  
 typedef struct __user_cap_data_struct {
-        int effective;
-        int permitted;
-        int inheritable;
+        __u32 effective;
+        __u32 permitted;
+        __u32 inheritable;
 } *cap_user_data_t;