int vc_text2cap(char const *);
char const * vc_cap2text(int);
+ inline static int vc_get_securecaps() {
+ 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) |
+ (1<<VC_CAP_SYS_MODULE) | (1<<VC_CAP_SYS_RAWIO) |
+ (1<<VC_CAP_SYS_PACCT) | (1<<VC_CAP_SYS_ADMIN) |
+ (1<<VC_CAP_SYS_BOOT) | (1<<VC_CAP_SYS_NICE) |
+ (1<<VC_CAP_SYS_RESOURCE) | (1<<VC_CAP_SYS_TIME) |
+ (1<<VC_CAP_MKNOD) | (1<<VC_CAP_QUOTACTL) );
+ }
+
/* The management part */
be freed by the caller. */
char * vc_getVserverName(char const *id, vcCfgStyle style);
+ /** Returns the path of the vserver configuration directory. When the given
+ * vserver does not exist, or when it does not have such a directory, NULL
+ * will be returned. Else, the result will be allocated and must be freed
+ * by the caller. */
+ char * vc_getVserverCfgDir(char const *id, vcCfgStyle style);
+
+ /** Returns the path of the configuration directory for the given
+ * application. The result will be allocated and must be freed by the
+ * caller. */
+ char * vc_getVserverAppDir(char const *id, vcCfgStyle style, char const *app);
+
+ /** Returns the path to the vserver root-directory. The result will be
+ * allocated and must be freed by the caller. */
char * vc_getVserverVdir(char const *id, vcCfgStyle style);
/** Returns the ctx of the given vserver. When vserver is not running and