diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-01-26 01:13:58 +0100 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-01-26 01:13:58 +0100 |
| commit | 9967c9949e0436879354e76c2847d697c309984c (patch) | |
| tree | dcd6b3707305ef43f496a6058da45c89460fda4e /docs | |
| parent | 06f20bf675cdd415c2f796ebea9fc55030ef49cc (diff) | |
| download | busybox-w32-9967c9949e0436879354e76c2847d697c309984c.tar.gz busybox-w32-9967c9949e0436879354e76c2847d697c309984c.tar.bz2 busybox-w32-9967c9949e0436879354e76c2847d697c309984c.zip | |
libbb: spawn_and_wait() fflushes before forking NOEXEC; child reinits logmode
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/nofork_noexec.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/nofork_noexec.txt b/docs/nofork_noexec.txt index 2fb184a03..a24dd9c27 100644 --- a/docs/nofork_noexec.txt +++ b/docs/nofork_noexec.txt | |||
| @@ -99,6 +99,13 @@ applet_name. Thus, for example, caller does not need to worry about | |||
| 99 | option_mask32 getting trashed. | 99 | option_mask32 getting trashed. |
| 100 | 100 | ||
| 101 | 101 | ||
| 102 | Calling NOEXEC applets | ||
| 103 | |||
| 104 | It's the same trusty spawn_and_wait(argv). If FEATURE_PREFER_APPLETS=y, | ||
| 105 | it does NOEXEC trick. It resets xfunc_error_retval = 1 and | ||
| 106 | logmode = LOGMODE_STDIO in the child. | ||
| 107 | |||
| 108 | |||
| 102 | Relevant CONFIG options | 109 | Relevant CONFIG options |
| 103 | 110 | ||
| 104 | FEATURE_PREFER_APPLETS | 111 | FEATURE_PREFER_APPLETS |
