diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-21 00:41:04 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-21 00:41:04 +0000 |
commit | 2f0c0d0b8829b8aea97bc09833e172c59b55cd94 (patch) | |
tree | 3e82c2dd94d674a723f3d7df350f32dc8892adc1 /Config.in | |
parent | b3f3c23f786a2486a8545ef0d904061ac83e6453 (diff) | |
download | busybox-w32-2f0c0d0b8829b8aea97bc09833e172c59b55cd94.tar.gz busybox-w32-2f0c0d0b8829b8aea97bc09833e172c59b55cd94.tar.bz2 busybox-w32-2f0c0d0b8829b8aea97bc09833e172c59b55cd94.zip |
Introduce FEATURE_EXEC_PREFER_APPLETS = "re-execute our own
executable if we asked to exec someting with argv[0] == known_applet"
Use it in init. Also respect PATH in init, remove explicit "/sbin" etc
from exec. Patch by Gabriel L. Somlo <somlo@cmu.edu>
Diffstat (limited to 'Config.in')
-rw-r--r-- | Config.in | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -231,6 +231,14 @@ config SELINUX | |||
231 | 231 | ||
232 | Most people will leave this set to 'N'. | 232 | Most people will leave this set to 'N'. |
233 | 233 | ||
234 | config FEATURE_EXEC_PREFER_APPLETS | ||
235 | bool "exec prefers applets" | ||
236 | default n | ||
237 | help | ||
238 | This is an experimental option which directs applets about to | ||
239 | call 'exec' to try and find an applicable busybox applet before | ||
240 | searching the executable path for a binary or symlink to execute. | ||
241 | |||
234 | config BUSYBOX_EXEC_PATH | 242 | config BUSYBOX_EXEC_PATH |
235 | string "Path to BusyBox executable" | 243 | string "Path to BusyBox executable" |
236 | default "/proc/self/exe" | 244 | default "/proc/self/exe" |
@@ -439,7 +447,7 @@ config INSTALL_APPLET_HARDLINKS | |||
439 | config INSTALL_APPLET_DONT | 447 | config INSTALL_APPLET_DONT |
440 | bool | 448 | bool |
441 | prompt "not installed" | 449 | prompt "not installed" |
442 | depends on FEATURE_INSTALLER || FEATURE_SH_STANDALONE_SHELL | 450 | depends on FEATURE_INSTALLER || FEATURE_SH_STANDALONE_SHELL || FEATURE_EXEC_PREFER_APPLETS |
443 | help | 451 | help |
444 | Do not install applet links. Useful when using the -install feature | 452 | Do not install applet links. Useful when using the -install feature |
445 | or a standalone shell for rescue pruposes. | 453 | or a standalone shell for rescue pruposes. |