gentoo: use /var/run for new /run compatibility
[util-vserver.git] / lib / bcaps-v13.c
index 6f9f491..7a5cece 100644 (file)
 #include <strings.h>
 #include <assert.h>
 
-#define DECL(VAL) { #VAL, sizeof(#VAL)-1, 1 << (CAP_ ## VAL) }
-
-#ifndef CAP_AUDIT_WRITE
-#  define CAP_AUDIT_WRITE      29
-#endif
-
-#ifndef CAP_AUDIT_CONTROL
-#  define CAP_AUDIT_CONTROL    30
-#endif
+#define DECL(VAL) { #VAL, sizeof(#VAL)-1, 1ULL << (VC_CAP_ ## VAL) }
 
 static struct Mapping_uint64 const VALUES[] = {
   DECL(CHOWN),
@@ -71,6 +63,9 @@ static struct Mapping_uint64 const VALUES[] = {
   DECL(LEASE),
   DECL(AUDIT_WRITE),
   DECL(AUDIT_CONTROL),
+  DECL(SETFCAP),
+  DECL(MAC_OVERRIDE),
+  DECL(MAC_ADMIN),
 };
 
 inline static char const *