aboutsummaryrefslogtreecommitdiff
path: root/lib/toyflags.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2018-07-19 23:27:14 -0500
committerRob Landley <rob@landley.net>2018-07-19 23:27:14 -0500
commit0c5577513f215d1b81fe62f06afe4351e18f8ceb (patch)
tree05195d10c278082768f68d6ad99094a9879ced49 /lib/toyflags.h
parent701d0d9328f3f8efb94a90c90994d3ada2648e35 (diff)
downloadtoybox-0c5577513f215d1b81fe62f06afe4351e18f8ceb.tar.gz
Tweak/add some comments.
Diffstat (limited to 'lib/toyflags.h')
-rw-r--r--lib/toyflags.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/toyflags.h b/lib/toyflags.h
index 859cca2e..bec8078b 100644
--- a/lib/toyflags.h
+++ b/lib/toyflags.h
@@ -6,6 +6,8 @@
// Flags describing command behavior.
+// Where to install (toybox --long outputs absolute paths to commands)
+// If no location bits set, command not listed in "toybox" command's output.
#define TOYFLAG_USR (1<<0)
#define TOYFLAG_BIN (1<<1)
#define TOYFLAG_SBIN (1<<2)
@@ -18,8 +20,8 @@
#define TOYFLAG_UMASK (1<<5)
// This command runs as root.
-#define TOYFLAG_STAYROOT (1<<6)
-#define TOYFLAG_NEEDROOT (1<<7)
+#define TOYFLAG_STAYROOT (1<<6) // Don't drop suid root before running cmd_main
+#define TOYFLAG_NEEDROOT (1<<7) // Refuse to run if real uid != 0
#define TOYFLAG_ROOTONLY (TOYFLAG_STAYROOT|TOYFLAG_NEEDROOT)
// Call setlocale to listen to environment variables.