Proposal - Embedding BusyBox as self-contained shell interpreter in other programs
Nadav Tasher
tashernadav at gmail.com
Mon Jan 13 21:21:46 UTC 2025
Hi all,
I’m working on making BusyBox an embeddable, self-contained shell interpreter
with applets as built-in commands.
This enhancement would allow users to link directly with BusyBox to provide
a complete shell capable of executing pre-built applets as commands.
It could be particularly useful for embedding limited shell functionality
in other programs that expose a shell-like environment or that require executing
shell scripts in a controlled, curated environment.
I’ve already developed some of the patches required to implement this,
and will continue working on it.
For now, I’ve attached patches that introduce some of the changes I’m proposing.
Looking forward to your feedback!
Kind regards,
Nadav
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libbb.h-change-BB_EXECLP-macro-to-use-BB_EXECVP.patch
Type: text/x-diff
Size: 1174 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20250113/73993829/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Config.in-introduce-FEATURE_DIRECTLY_CALL_APPLETS-options.patch
Type: text/x-diff
Size: 1268 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20250113/73993829/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-executable.c-allow-calling-applets-directly-in-BB_EXECVP.patch
Type: text/x-diff
Size: 1199 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20250113/73993829/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-ash.c-allow-bypassing-NOEXEC-check-using-FEATURE_DIRECTLY_CALL_APPLETS.patch
Type: text/x-diff
Size: 975 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20250113/73993829/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-vfork_daemon_rexec.c-allow-bypassing-NOEXEC-check-using-FEATURE_DIRECTLY_CALL_APPLETS.patch
Type: text/x-diff
Size: 1108 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20250113/73993829/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-hush.c-allow-bypassing-NOEXEC-check-using-FEATURE_DIRECTLY_CALL_APPLETS.patch
Type: text/x-diff
Size: 1123 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20250113/73993829/attachment-0005.bin>
More information about the busybox
mailing list