summaryrefslogtreecommitdiffhomepage
path: root/src/skin/ntux_skin_chmod.c
blob: 798ad47a9c596060d6ffd9b7e040d53dd180cd45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#include "ntux_driver_impl.h"
#include "argv/argv.h"

const struct argv_option ntux_chmod_options[] = {
	{"version",		'v',TAG_VERSION,ARGV_OPTARG_NONE,0,0,0,
				"show version information"},

	{"help",		'h',TAG_HELP,ARGV_OPTARG_OPTIONAL,0,"short|long",0,
				"show usage information [listing %s options only]"},

	{"verbose",		'V',TAG_VERBOSE,ARGV_OPTARG_NONE,0,0,0,
				"dump security descriptor information for each file and action"},

	{"silent",		'f',TAG_VERSION,ARGV_OPTARG_NONE,0,0,0,
				"suppress most error messages"},

	{"recursive",		'R',TAG_RECURSIVE,ARGV_OPTARG_NONE,0,0,0,
				"recurse into sub-directories"},

	{"strmode",		's',TAG_STRMODE,ARGV_OPTARG_REQUIRED,0,0,"<STRMODE>",
				"set mode based on the symbolic mode %s"},

	{"refobj",		'e',TAG_REFOBJ,ARGV_OPTARG_REQUIRED,0,0,"<REFOBJ>",
				"set mode based on the reference file %s"},

	{"reference",		0,TAG_REFOBJ,ARGV_OPTARG_REQUIRED,0,0,0,
				"a synonym for --refobj"},

	{"changes",		'c',TAG_CHANGES,ARGV_OPTARG_NONE,0,0,0,
				"print a list of changed ACEs"},

	{"owner",		'O',TAG_OWNER,ARGV_OPTARG_REQUIRED,0,0,"<OWNER>",
				"also set the owner to %s"},

	{"group",		'G',TAG_GROUP,ARGV_OPTARG_REQUIRED,0,0,"<GROUP>",
				"also set the group to %s"},

	{"preserve-root",	0,TAG_ROOTED,ARGV_OPTARG_NONE,0,0,0,
				"disallow operating on the root folder /"},

	{"no-preserve-root",	0,TAG_ROOTLESS,ARGV_OPTARG_NONE,0,0,0,
				"allow operating on the root folder /"},

	{0,0,0,0,0,0,0,0}
};