diff options
author | Rob Landley <rob@landley.net> | 2006-05-31 23:23:42 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-05-31 23:23:42 +0000 |
commit | d5b9b60fa543b9910f8cd035e3d0a9a511ef6892 (patch) | |
tree | c502b2d9c03450bdf0bd961edd145f9989239989 | |
parent | 06208417581fb8dcc05c8ca0250397d33ef3be52 (diff) | |
download | busybox-w32-d5b9b60fa543b9910f8cd035e3d0a9a511ef6892.tar.gz busybox-w32-d5b9b60fa543b9910f8cd035e3d0a9a511ef6892.tar.bz2 busybox-w32-d5b9b60fa543b9910f8cd035e3d0a9a511ef6892.zip |
Add CONFIG_NITPICK. (And tweak a couple other help entries while I'm there.)
Nothing's actually using it yet, but we need it.
-rw-r--r-- | Config.in | 52 |
1 files changed, 37 insertions, 15 deletions
@@ -13,6 +13,22 @@ menu "Busybox Settings" | |||
13 | 13 | ||
14 | menu "General Configuration" | 14 | menu "General Configuration" |
15 | 15 | ||
16 | config CONFIG_NITPICK | ||
17 | bool "See lots more (probably unnecessary) configuration options." | ||
18 | default n | ||
19 | help | ||
20 | Some BusyBox applets have more configuration options than anyone | ||
21 | will ever care about. To avoid drowining people in complexity, most | ||
22 | of the applet features that can be set to a sane default value are | ||
23 | hidden, unless you hit the above switch. | ||
24 | |||
25 | This is better than to telling people to edit the busybox source | ||
26 | code, but not by much. | ||
27 | |||
28 | See http://en.wikipedia.org/wiki/Fibber_McGee_and_Molly#The_Closet | ||
29 | |||
30 | You have been warned. | ||
31 | |||
16 | choice | 32 | choice |
17 | prompt "Buffer allocation policy" | 33 | prompt "Buffer allocation policy" |
18 | default CONFIG_FEATURE_BUFFERS_USE_MALLOC | 34 | default CONFIG_FEATURE_BUFFERS_USE_MALLOC |
@@ -81,19 +97,12 @@ config CONFIG_LOCALE_SUPPORT | |||
81 | busybox to support locale settings. | 97 | busybox to support locale settings. |
82 | 98 | ||
83 | config CONFIG_GETOPT_LONG | 99 | config CONFIG_GETOPT_LONG |
84 | bool "Enable getopt long (system needs struct option for this to work)" | 100 | bool "Enable support for --long-options" |
85 | default n | 101 | default n |
86 | depends on !CONFIG_NO_GETOPT_LONG | 102 | depends on !CONFIG_NO_GETOPT_LONG |
87 | help | 103 | help |
88 | EXPERIMENTAL! | 104 | Enable this if you want busybox applets to use the gnu --long-option |
89 | Enable this if your system support long options for getopt and | 105 | style, in addition to single character -a -b -c style options. |
90 | you want to use them in busybox. | ||
91 | |||
92 | # remove this comment to disable getopt_long per default. | ||
93 | #config CONFIG_NO_GETOPT_LONG | ||
94 | # bool | ||
95 | # default y | ||
96 | # depends on !CONFIG_GETOPT_LONG | ||
97 | 106 | ||
98 | config CONFIG_FEATURE_DEVFS | 107 | config CONFIG_FEATURE_DEVFS |
99 | bool "Use devfs names for devices" | 108 | bool "Use devfs names for devices" |
@@ -103,6 +112,9 @@ config CONFIG_FEATURE_DEVFS | |||
103 | /dev/loop0. If your /dev directory has normal names instead of | 112 | /dev/loop0. If your /dev directory has normal names instead of |
104 | devfs names, you don't want this. | 113 | devfs names, you don't want this. |
105 | 114 | ||
115 | This is obsolete and will be going away someday. Consider it | ||
116 | deprecated. | ||
117 | |||
106 | config CONFIG_FEATURE_DEVPTS | 118 | config CONFIG_FEATURE_DEVPTS |
107 | bool "Use the devpts filesystem for Unix98 PTYs" | 119 | bool "Use the devpts filesystem for Unix98 PTYs" |
108 | default y if CONFIG_FEATURE_DEVFS | 120 | default y if CONFIG_FEATURE_DEVFS |
@@ -111,7 +123,7 @@ config CONFIG_FEATURE_DEVPTS | |||
111 | busybox will use /dev/ptmx for the master side of the pseudoterminal | 123 | busybox will use /dev/ptmx for the master side of the pseudoterminal |
112 | and /dev/pts/<number> for the slave side. Otherwise, BSD style | 124 | and /dev/pts/<number> for the slave side. Otherwise, BSD style |
113 | /dev/ttyp<number> will be used. To use this option, you should have | 125 | /dev/ttyp<number> will be used. To use this option, you should have |
114 | devpts or devfs mounted. | 126 | devpts mounted. |
115 | 127 | ||
116 | config CONFIG_FEATURE_CLEAN_UP | 128 | config CONFIG_FEATURE_CLEAN_UP |
117 | bool "Clean up all memory before exiting (usually not needed)" | 129 | bool "Clean up all memory before exiting (usually not needed)" |
@@ -129,15 +141,25 @@ config CONFIG_FEATURE_SUID | |||
129 | bool "Support for SUID/SGID handling" | 141 | bool "Support for SUID/SGID handling" |
130 | default n | 142 | default n |
131 | help | 143 | help |
132 | Support SUID and SGID binaries. | 144 | With this option you can install the busybox binary belonging |
145 | to root with the suid bit set, and it'll and it'll automatically drop | ||
146 | priviledges for applets that don't need root access. | ||
147 | |||
148 | If you're really paranoid and don't want to do this, build two | ||
149 | busybox binaries with different applets in them (and the appropriate | ||
150 | symlinks pointing to each binary), and only set the suid bit on the | ||
151 | one that needs it. The applets currently marked to need the suid bit | ||
152 | are login, passwd, su, ping, traceroute, crontab, dnsd, ipcrm, ipcs, | ||
153 | and vlock. | ||
133 | 154 | ||
134 | config CONFIG_FEATURE_SUID_CONFIG | 155 | config CONFIG_FEATURE_SUID_CONFIG |
135 | bool "Runtime SUID/SGID configuration via /etc/busybox.conf" | 156 | bool "Runtime SUID/SGID configuration via /etc/busybox.conf" |
136 | default n if CONFIG_FEATURE_SUID | 157 | default n if CONFIG_FEATURE_SUID |
137 | depends on CONFIG_FEATURE_SUID | 158 | depends on CONFIG_FEATURE_SUID |
138 | help | 159 | help |
139 | Allow the SUID / SGID state of an applet to be determined runtime by | 160 | Allow the SUID / SGID state of an applet to be determined at runtime |
140 | checking /etc/busybox.conf. The format of this file is as follows: | 161 | by checking /etc/busybox.conf. (This is sort of a poor man's sudo.) |
162 | The format of this file is as follows: | ||
141 | 163 | ||
142 | <applet> = [Ssx-][Ssx-][x-] (<username>|<uid>).(<groupname>|<gid>) | 164 | <applet> = [Ssx-][Ssx-][x-] (<username>|<uid>).(<groupname>|<gid>) |
143 | 165 | ||
@@ -164,7 +186,7 @@ config CONFIG_FEATURE_SUID_CONFIG | |||
164 | 186 | ||
165 | config CONFIG_FEATURE_SUID_CONFIG_QUIET | 187 | config CONFIG_FEATURE_SUID_CONFIG_QUIET |
166 | bool "Suppress warning message if /etc/busybox.conf is not readable" | 188 | bool "Suppress warning message if /etc/busybox.conf is not readable" |
167 | default n | 189 | default y |
168 | depends on CONFIG_FEATURE_SUID_CONFIG | 190 | depends on CONFIG_FEATURE_SUID_CONFIG |
169 | help | 191 | help |
170 | /etc/busybox.conf should be readable by the user needing the SUID, check | 192 | /etc/busybox.conf should be readable by the user needing the SUID, check |