Changeset 2659
- Timestamp:
- 01/12/08 16:55:25 (11 months ago)
- Files:
-
- trunk/lib/vserver.h (modified) (1 diff)
- trunk/src/vspace.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/vserver.h
r2648 r2659 312 312 # define CLONE_NEWUSER 0x10000000 313 313 #endif 314 #ifndef CLONE_NEWPID 315 # define CLONE_NEWPID 0x20000000 316 #endif 317 #ifndef CLONE_NEWNET 318 # define CLONE_NEWNET 0x40000000 319 #endif 314 320 315 321 trunk/src/vspace.c
r2658 r2659 57 57 { "uts", no_argument, 0, 'U' }, 58 58 { "user", no_argument, 0, 'S' }, 59 { "pid", no_argument, 0, 'P' }, 60 { "net", no_argument, 0, 'N' }, 59 61 {0,0,0,0} 60 62 }; … … 84 86 " --uts ... the uts namespace\n" 85 87 " --user ... the user namespace\n" 88 " --pid ... the pid namespace\n" 89 " --net ... the network namespace\n" 86 90 "\n" 87 91 "Please report bugs to " PACKAGE_BUGREPORT "\n"); … … 154 158 155 159 while (1) { 156 int c = getopt_long(argc, argv, "+nsce:m:" "MFIUS ", CMDLINE_OPTIONS, 0);160 int c = getopt_long(argc, argv, "+nsce:m:" "MFIUSPN", CMDLINE_OPTIONS, 0); 157 161 if (c==-1) break; 158 162 … … 179 183 case 'U' : mask |= CLONE_NEWUTS; break; 180 184 case 'S' : mask |= CLONE_NEWUSER; break; 185 case 'P' : mask |= CLONE_NEWPID; break; 186 case 'N' : mask |= CLONE_NEWNET; break; 181 187 182 188 default :
