Ignore:
Timestamp:
Jan 1, 2014, 12:47:38 AM (10 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.21.1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi-busybox/docs/nofork_noexec.txt

    r2725 r3232  
    4545
    4646NOFORK 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.
     48xargs, find, shells do it (grep for "spawn_and_wait" and
     49"run_nofork_applet" to find more users).
     50
     51This poses much more serious limitations on what applet can do:
    5052
    5153* all NOEXEC limitations apply.
     
    5759  - fflush_stdout_and_exit(n) is ok to use.
    5860* 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.
    6062  - getopt32() is ok to use. You do not need to save/restore option_mask32,
    6163    it is already done by core code.
     
    7880
    7981Any NOFORK applet is also a NOEXEC applet.
     82
     83
     84    Relevant CONFIG options
     85
     86FEATURE_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
     92FEATURE_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
     97FEATURE_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.