@@ -1243,6 +1243,7 @@ static void usage(void)
12431243 lxcfs_info (" --enable-cfs Enable CPU virtualization via CPU shares" );
12441244 lxcfs_info (" --enable-pidfd Use pidfd for process tracking" );
12451245 lxcfs_info (" --enable-cgroup Enable cgroup emulation code" );
1246+ lxcfs_info (" --enable-nsdelegate Enable cgroup nsdelegate mount option" );
12461247 lxcfs_info (" --runtime-dir=DIR Path to use as the runtime directory." );
12471248 lxcfs_info (" Default is %s" , DEFAULT_RUNTIME_PATH );
12481249 exit (EXIT_FAILURE );
@@ -1294,6 +1295,7 @@ static const struct option long_options[] = {
12941295 {"enable-cfs" , no_argument , 0 , 0 },
12951296 {"enable-pidfd" , no_argument , 0 , 0 },
12961297 {"enable-cgroup" , no_argument , 0 , 0 },
1298+ {"enable-nsdelegate" , no_argument , 0 , 0 },
12971299
12981300 {"pidfile" , required_argument , 0 , 'p' },
12991301 {"runtime-dir" , required_argument , 0 , 0 },
@@ -1367,6 +1369,7 @@ int main(int argc, char *argv[])
13671369 opts -> swap_off = false;
13681370 opts -> use_pidfd = false;
13691371 opts -> use_cfs = false;
1372+ opts -> use_nsdelegate = false;
13701373 opts -> version = 2 ;
13711374
13721375 while ((c = getopt_long (argc , argv , "dulfhvso:p:" , long_options , & idx )) != -1 ) {
@@ -1378,6 +1381,8 @@ int main(int argc, char *argv[])
13781381 opts -> use_cfs = true;
13791382 else if (strcmp (long_options [idx ].name , "enable-cgroup" ) == 0 )
13801383 cgroup_is_enabled = true;
1384+ else if (strcmp (long_options [idx ].name , "enable-nsdelegate" ) == 0 )
1385+ opts -> use_nsdelegate = true;
13811386 else if (strcmp (long_options [idx ].name , "runtime-dir" ) == 0 )
13821387 runtime_path_arg = optarg ;
13831388 else
0 commit comments