10 #include <sys/types.h>
13 #define SPACE_FILE "/spaces/net"
14 #define VSERVERCONF "/etc/vservers/"
17 get_space_flag(xid_t xid) {
18 char *ctx_space_file, *space_name;
19 struct passwd *slice_user;
20 uint32_t space_flag = 0;
22 slice_user = get_pwuid(xid);
27 ctx_space_file=(char *) malloc(sizeof(VSERVERCONF SPACE_FILE "Z")+strlen(slice_user->pw_name));
31 sprintf(ctx_space_file,VSERVERCONF SPACE_FILE "%s", slice_user->pw_name);
33 if (access(ctx_space_file, F_OK)==0)
34 space_flag |= CLONE_NEWNET;