diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2014-06-27 12:24:39 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2014-06-27 12:24:39 +0200 |
commit | a6ae999b3b30ad522272325bac4c69b153150108 (patch) | |
tree | 0af61697af6661c9d45c28025f2404c522436278 /networking/brctl.c | |
parent | 5f8daefb835687e428215f90d26fdf1f0206149d (diff) | |
download | busybox-a6ae999b3b30ad522272325bac4c69b153150108.tar.gz |
ftpd: escape chroot prior to re-executing ls helper
When we merely chdir to saved "real" root fd,
exec("proc/self/exe") works for static executables but not
for dynamic ones (they can't find their interpreter).
With this patch, we also *chroot* to real root.
As a bonus, this gives us proper usernames, timezone conversion
etc.
function old new delta
popen_ls 203 259 +56
ftpd_main 2362 2366 +4
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/brctl.c')
0 files changed, 0 insertions, 0 deletions