summaryrefslogtreecommitdiffhomepage
path: root/src/skin/ntux_skin_chmod.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/skin/ntux_skin_chmod.c')
-rw-r--r--src/skin/ntux_skin_chmod.c39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/skin/ntux_skin_chmod.c b/src/skin/ntux_skin_chmod.c
new file mode 100644
index 0000000..cb300a6
--- /dev/null
+++ b/src/skin/ntux_skin_chmod.c
@@ -0,0 +1,39 @@
+#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"},
+
+ {"refmode", 'e',TAG_REFMODE,ARGV_OPTARG_REQUIRED,0,0,"<REFMODE>",
+ "set mode based on the reference file %s"},
+
+ {"reference", 0,TAG_REFMODE,ARGV_OPTARG_REQUIRED,0,0,0,
+ "a synonym for --refmode"},
+
+ {"changes", 'c',TAG_CHANGES,ARGV_OPTARG_NONE,0,0,0,
+ "a synonym for --refmode"},
+
+ {"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}
+};