Don't remove bits for which there were no match.
[util-vserver.git] / lib / vserver.h
index bc21f78..be896e1 100644 (file)
 #define VC_VXC_ADMIN_MAPPER            0x00200000ull
 #define VC_VXC_ADMIN_CLOOP             0x00400000ull
 
+#define VC_VXC_KTHREAD                 0x01000000ull
+
 
 // the scheduler flags
 #define VC_VXSM_FILL_RATE              0x0001
 #ifndef CLONE_NEWIPC
 #  define CLONE_NEWIPC                 0x08000000
 #endif
-
+#ifndef CLONE_NEWUSER
+#  define CLONE_NEWUSER                        0x10000000
+#endif
 
 
 #define VC_BAD_PERSONALITY             ((uint_least32_t)(-1))
@@ -647,7 +651,7 @@ extern "C" {
        } mask;
       } s;
 #define vna_v4_ip      s.ip.v4
-#define vna_v4_ip2     s.ip2.v6
+#define vna_v4_ip2     s.ip2.v4
 #define vna_v4_mask    s.mask.v4
 #define vna_v6_ip      s.ip.v6
 #define vna_v6_ip2     s.ip2.v6
@@ -821,6 +825,9 @@ extern "C" {
   int          vc_set_mapping(xid_t xid, const char *device, const char *target, uint32_t flags);
   int          vc_unset_mapping(xid_t xid, const char *device, const char *target, uint32_t flags);
 
+  int          vc_get_badness(xid_t xid, int64_t *badness);
+  int          vc_set_badness(xid_t xid, int64_t badness);
+
 
   /** \brief    Information about parsing errors
    *  \ingroup  helper