aboutsummaryrefslogtreecommitdiff
path: root/toys.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2010-01-05 12:17:05 -0600
committerRob Landley <rob@landley.net>2010-01-05 12:17:05 -0600
commite0377fb294821a68112d4da09f836ac42e3d5956 (patch)
tree489d2a2b21393f7283870c2f21ed82b5818f1d82 /toys.h
parent1e01cd1f48bff3fdd12f45bf1c3adfab821ee287 (diff)
downloadtoybox-e0377fb294821a68112d4da09f836ac42e3d5956.tar.gz
Add TOYBOX_SUID.
Diffstat (limited to 'toys.h')
-rw-r--r--toys.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/toys.h b/toys.h
index 93907fb6..e5cde838 100644
--- a/toys.h
+++ b/toys.h
@@ -68,6 +68,11 @@ void toy_exec(char *argv[]);
// Start applet with a umask of 0 (saves old umask in this.old_umask)
#define TOYFLAG_UMASK (1<<5)
+// This applet runs as root.
+#define TOYFLAG_STAYROOT (1<<6)
+#define TOYFLAG_NEEDROOT (1<<7)
+#define TOYFLAG_ROOTONLY (TOYFLAG_STAYROOT|TOYFLAG_NEEDROOT)
+
// Array of available applets
extern struct toy_list {