The default value is the same as has the parent cgroup.
.TP
-.B -d, --dperm mode
+.B -d, --dperm=mode
sets the permissions of a control groups directory.
The permissions needs to be specified as octal numbers e.g.
\fB-d 775\fR.
.TP
-.B -f, --fperm mode
+.B -f, --fperm=mode
sets the permissions of the control groups parameters.
The permissions needs to be specified as octal numbers e.g.
\fB-f 775\fR.
display this help and exit
.TP
-.B -s, --tperm mode
+.B -s, --tperm=mode
sets the permissions of the control group tasks file.
The permissions needs to be specified as octal numbers e.g.
\fB-f 775\fR.
static void usage(char *progname)
{
- printf("Usage: %s [-l FILE] ...\n", basename(progname));
+ printf("Usage: %s [-h] [-f mode] [-d mode] [-s mode] "\
+ "[-t <tuid>:<tgid>] [-a <agid>:<auid>] "\
+ "[-l FILE] [-L directory] ...\n", basename(progname));
printf("Parse and load the specified cgroups configuration file\n");
printf("\n");
printf(" -h, --help Display this help\n");
" configuration files from a directory\n");
printf(" -a <tuid>:<tgid> Default owner of groups files"\
" and directories\n");
- printf(" -d, --dperm mode Default group directory"\
+ printf(" -d, --dperm=mode Default group directory"\
" permissions\n");
- printf(" -f, --fperm mode Default group file"\
+ printf(" -f, --fperm=mode Default group file"\
" permissions\n");
- printf(" -s --tperm mode Default tasks file"
+ printf(" -s --tperm=mode Default tasks file"
" permissions\n");
printf(" -t <tuid>:<tgid> Default owner of the tasks "
- "file");
+ "file\n");
exit(2);
}
program_name);
} else {
fprintf(stdout, "Usage: %s [-h] [-f mode] [-d mode] "\
- "[-t <tuid>:<tgid>] [-a <agid>:<auid>] "\
+ "[-s mode] [-t <tuid>:<tgid>] [-a <agid>:<auid>] "\
"-g <controllers>:<path> [-g ...]\n",
program_name);
- fprintf(stdout, " -a <tuid>:<tgid> Set "\
- "the admin permission\n");
- fprintf(stdout, " -d, --dperm mode Group "\
+ fprintf(stdout, " -a <tuid>:<tgid> Owner "\
+ "of the group and all its files\n");
+ fprintf(stdout, " -d, --dperm=mode Group "\
"directory permissions\n");
- fprintf(stdout, " -f, --fperm mode Group "\
+ fprintf(stdout, " -f, --fperm=mode Group "\
"file permissions\n");
fprintf(stdout, " -g <controllers>:<path> Control "\
"group which should be added\n");
fprintf(stdout, " -h, --help Display "\
"this help\n");
- fprintf(stdout, " -s --tperm mode Tasks "\
+ fprintf(stdout, " -s --tperm=mode Tasks "\
"file permissions\n");
- fprintf(stdout, " -t <tuid>:<tgid> Set "\
- "the task permission\n");
+ fprintf(stdout, " -t <tuid>:<tgid> Owner "\
+ "of the tasks file\n");
}
}