legacy.h (1127B)
1 #ifndef _VX_LEGACY_H 2 #define _VX_LEGACY_H 3 4 #include "switch.h" 5 6 7 /* compatibiliy vserver commands */ 8 9 #define VCMD_new_s_context VC_CMD(COMPAT, 1, 1) 10 #define VCMD_set_ipv4root VC_CMD(COMPAT, 2, 3) 11 12 #define VCMD_create_context VC_CMD(VSETUP, 1, 0) 13 14 /* compatibiliy vserver arguments */ 15 16 struct vcmd_new_s_context_v1 { 17 uint32_t remove_cap; 18 uint32_t flags; 19 }; 20 21 struct vcmd_set_ipv4root_v3 { 22 /* number of pairs in id */ 23 uint32_t broadcast; 24 struct { 25 uint32_t ip; 26 uint32_t mask; 27 } nx_mask_pair[NB_IPV4ROOT]; 28 }; 29 30 31 #define VX_INFO_LOCK 1 /* Can't request a new vx_id */ 32 #define VX_INFO_NPROC 4 /* Limit number of processes in a context */ 33 #define VX_INFO_PRIVATE 8 /* Noone can join this security context */ 34 #define VX_INFO_INIT 16 /* This process wants to become the */ 35 /* logical process 1 of the security */ 36 /* context */ 37 #define VX_INFO_HIDEINFO 32 /* Hide some information in /proc */ 38 #define VX_INFO_ULIMIT 64 /* Use ulimit of the current process */ 39 /* to become the global limits */ 40 /* of the context */ 41 #define VX_INFO_NAMESPACE 128 /* save private namespace */ 42 43 44 #endif /* _VX_LEGACY_H */