summaryrefslogtreecommitdiffhomepage
path: root/src/driver/ntux_driver_ctx.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/driver/ntux_driver_ctx.c')
-rw-r--r--src/driver/ntux_driver_ctx.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/driver/ntux_driver_ctx.c b/src/driver/ntux_driver_ctx.c
index c93852c..3edf1d2 100644
--- a/src/driver/ntux_driver_ctx.c
+++ b/src/driver/ntux_driver_ctx.c
@@ -34,6 +34,7 @@ static const char * const ntux_cmd_name[NTUX_CMD_CAP] = {
[NTUX_CMD_SPAWN] = "spawn",
[NTUX_CMD_STRACE] = "strace",
[NTUX_CMD_CHMOD] = "chmod",
+ [NTUX_CMD_ACEIT] = "aceit",
};
/* ntux command options */
@@ -43,6 +44,7 @@ static const struct argv_option * ntux_cmd_options[NTUX_CMD_CAP] = {
[NTUX_CMD_SPAWN] = ntux_spawn_options,
[NTUX_CMD_STRACE] = ntux_strace_options,
[NTUX_CMD_CHMOD] = ntux_chmod_options,
+ [NTUX_CMD_ACEIT] = ntux_aceit_options,
};
/* package info */
@@ -206,6 +208,9 @@ static int ntux_cctx_update(
else if (!strcmp(entry->arg,"chmod"))
cctx->cmd = NTUX_CMD_CHMOD;
+ else if (!strcmp(entry->arg,"aceit"))
+ cctx->cmd = NTUX_CMD_ACEIT;
+
break;
case TAG_LOADER:
@@ -249,6 +254,10 @@ static int ntux_cctx_update(
cctx->drvflags &= ~(uint64_t)NTUX_DRIVER_ROOTED;
cctx->drvflags |= NTUX_DRIVER_ROOTLESS;
break;
+
+ case TAG_DUMP:
+ cctx->drvflags |= NTUX_DRIVER_DUMP;
+ break;
}
} else {
(*nunits)++;
@@ -288,6 +297,8 @@ static int ntux_cmd_from_program(const char * program)
return NTUX_CMD_STRACE;
else if (!strcmp(mark,"chmod"))
return NTUX_CMD_CHMOD;
+ else if (!strcmp(mark,"aceit"))
+ return NTUX_CMD_ACEIT;
return NTUX_CMD_DEFAULT;
}
@@ -426,6 +437,9 @@ int ntux_get_driver_ctx(
else if (cctx.cmd == NTUX_CMD_CHMOD)
argv_optv_init(ntux_chmod_options,optv);
+ else if (cctx.cmd == NTUX_CMD_ACEIT)
+ argv_optv_init(ntux_aceit_options,optv);
+
/* spawn, strace */
if ((cctx.cmd == NTUX_CMD_SPAWN) || (cctx.cmd == NTUX_CMD_STRACE)) {
argv_scan(argv,optv,&ctx,0);