Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/docs/nofork_noexec.txt
- Timestamp:
- Jan 1, 2014, 12:47:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi-busybox/docs/nofork_noexec.txt
r2725 r3232 45 45 46 46 NOFORK applet should work correctly if another applet simply runs 47 <applet>_main(argc,argv) and then continues with its business (xargs, 48 find, shells can do it). This poses much more serious limitations 49 on what applet can/cannot do: 47 <applet>_main(argc,argv) and then continues with its business. 48 xargs, find, shells do it (grep for "spawn_and_wait" and 49 "run_nofork_applet" to find more users). 50 51 This poses much more serious limitations on what applet can do: 50 52 51 53 * all NOEXEC limitations apply. … … 57 59 - fflush_stdout_and_exit(n) is ok to use. 58 60 * do not use shared global data, or save/restore shared global data 59 prior to returning. (e.g. bb_common_bufsiz1 is off-limits).61 (e.g. bb_common_bufsiz1) prior to returning. 60 62 - getopt32() is ok to use. You do not need to save/restore option_mask32, 61 63 it is already done by core code. … … 78 80 79 81 Any NOFORK applet is also a NOEXEC applet. 82 83 84 Relevant CONFIG options 85 86 FEATURE_PREFER_APPLETS 87 BB_EXECVP(cmd, argv) will try to exec /proc/self/exe 88 if command's name matches some applet name 89 applet tables will contain NOFORK/NOEXEC bits 90 spawn_and_wait(argv) will do NOFORK/NOEXEC tricks 91 92 FEATURE_SH_STANDALONE (needs FEATURE_PREFER_APPLETS=y) 93 shells will try to exec /proc/self/exe if command's name matches 94 some applet name 95 shells will do NOEXEC trick on NOEXEC applets 96 97 FEATURE_SH_NOFORK (needs FEATURE_PREFER_APPLETS=y) 98 shells will do NOFORK trick on NOFORK applets
Note:
See TracChangeset
for help on using the changeset viewer.