initial checkin
[util-vserver.git] / util-vserver / lib / vserver.h
index 23c53ba..42b0e5f 100644 (file)
@@ -412,7 +412,7 @@ extern "C" {
   int          vc_text2cap(char const *);
   char const * vc_cap2text(unsigned int);
 
-  inline static uint_least32_t vc_get_securecaps() {
+  inline static uint_least32_t vc_get_insecurecaps() {
     return ( (1<<VC_CAP_LINUX_IMMUTABLE) | (1<<VC_CAP_NET_BROADCAST) |
             (1<<VC_CAP_NET_ADMIN) | (1<<VC_CAP_NET_RAW) |
             (1<<VC_CAP_IPC_LOCK) | (1<<VC_CAP_IPC_OWNER) |
@@ -463,6 +463,10 @@ extern "C" {
                 vcCFG_RECENT_SHORT,
                 vcCFG_RECENT_FULL }            vcCfgStyle;
 
+
+  /** Maps an xid given at '--xid' options to an xid_t */
+  xid_t                vc_xidopt2xid(char const *, bool honor_static, char const **err_info);
+
   vcCfgStyle   vc_getVserverCfgStyle(char const *id);
   
   /** Resolves the name of the vserver. The result will be allocated and must