10 #include <sys/types.h>
14 #define SPACE_FILE "/spaces/net"
15 #define VSERVERCONF "/etc/vservers/"
18 pl_unshare_netns(xid_t xid) {
19 char *ctx_space_file, *space_name;
20 struct passwd *slice_user;
25 slice_user = getpwuid(xid);
30 ctx_space_file=(char *) malloc(sizeof(VSERVERCONF SPACE_FILE "Z")+strlen(slice_user->pw_name));
34 sprintf(ctx_space_file,VSERVERCONF "%s" SPACE_FILE, slice_user->pw_name);
36 if ((fb = fopen(ctx_space_file, "r")) == NULL)
39 if (fgets(buf, sizeof(buf), fb) != NULL) {