summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-10-09 20:48:31 -0400
committermidipix <writeonce@midipix.org>2018-10-12 13:59:52 -0400
commit80f43a829180bc0301fecb5dc4ddf6dd95348976 (patch)
tree359f21c062534deae79d6527c7e1d9673609c244 /include
parent4fe92c4cff0594f66da78c946cbee5621cf23428 (diff)
downloadntux-80f43a829180bc0301fecb5dc4ddf6dd95348976.tar.bz2
ntux-80f43a829180bc0301fecb5dc4ddf6dd95348976.tar.xz
driver: added 'chmod' command support.
Diffstat (limited to 'include')
-rw-r--r--include/ntux/ntux.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/ntux/ntux.h b/include/ntux/ntux.h
index 76a1965..936b101 100644
--- a/include/ntux/ntux.h
+++ b/include/ntux/ntux.h
@@ -31,6 +31,13 @@ extern "C" {
#define NTUX_DRIVER_VERSION 0x0010
#define NTUX_DRIVER_DRY_RUN 0x0020
+#define NTUX_DRIVER_VERBOSE 0x0040
+#define NTUX_DRIVER_SILENT 0x0080
+
+#define NTUX_DRIVER_RECURSIVE 0x0100
+#define NTUX_DRIVER_CHANGES 0x0200
+#define NTUX_DRIVER_ROOTED 0x0400
+#define NTUX_DRIVER_ROOTLESS 0x0800
#define NTUX_DRIVER_ANNOTATE_ALWAYS 0x10000000
#define NTUX_DRIVER_ANNOTATE_NEVER 0x20000000
@@ -54,6 +61,7 @@ enum ntux_cmd {
NTUX_CMD_STAT,
NTUX_CMD_SPAWN,
NTUX_CMD_STRACE,
+ NTUX_CMD_CHMOD,
NTUX_CMD_CAP,
};
@@ -95,6 +103,8 @@ struct ntux_common_ctx {
char ** senvp;
const char * loader;
const char * logfile;
+ const char * refmode;
+ const char * strmode;
uint32_t sysmask[16];
uint32_t dbgmask[16];
uint32_t osmask [32];
@@ -125,6 +135,7 @@ ntux_api int ntux_get_driver_fdctx (const struct ntux_driver_ctx *, struct
ntux_api int ntux_set_driver_fdctx (struct ntux_driver_ctx *, const struct ntux_fd_ctx *);
/* cmd api */
+ntux_api int ntux_cmd_chmod (const struct ntux_driver_ctx *, const char *);
ntux_api int ntux_cmd_stat (const struct ntux_driver_ctx *, const char *);
ntux_api int ntux_cmd_spawn (const struct ntux_driver_ctx *);
ntux_api int ntux_cmd_strace (const struct ntux_driver_ctx *);