From dcb685978a211909b6bdadbfa62b2acfa40cd0ee Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 2 Aug 2022 10:56:26 +0000 Subject: ntux_cmd_aceit(): initial implementation and driver integration. --- src/skin/ntux_skin_aceit.c | 16 ++++++++++++++++ src/skin/ntux_skin_default.c | 3 ++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 src/skin/ntux_skin_aceit.c (limited to 'src/skin') diff --git a/src/skin/ntux_skin_aceit.c b/src/skin/ntux_skin_aceit.c new file mode 100644 index 0000000..c156131 --- /dev/null +++ b/src/skin/ntux_skin_aceit.c @@ -0,0 +1,16 @@ +#include "ntux_driver_impl.h" +#include "argv/argv.h" + +const struct argv_option ntux_aceit_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]"}, + + {"dump", 'd',TAG_DUMP,ARGV_OPTARG_NONE,0,0,0, + "print all entries of the (virtual) file's " + "security descriptor"}, + + {0,0,0,0,0,0,0,0} +}; diff --git a/src/skin/ntux_skin_default.c b/src/skin/ntux_skin_default.c index f79f008..389321e 100644 --- a/src/skin/ntux_skin_default.c +++ b/src/skin/ntux_skin_default.c @@ -8,7 +8,8 @@ const struct argv_option ntux_default_options[] = { {"help", 'h',TAG_HELP,ARGV_OPTARG_OPTIONAL,0,"short|long",0, "show usage information [listing %s options only]"}, - {"cmd", 0,TAG_CMD,ARGV_OPTARG_REQUIRED,0,"stat|spawn|strace|chmod",0, + {"cmd", 0,TAG_CMD,ARGV_OPTARG_REQUIRED,0, + "stat|spawn|strace|chmod|aceit",0, "invoke one of the following ntux commands: %s"}, {0,0,0,0,0,0,0,0} -- cgit v1.2.3