hush/networking
Denys Vlasenko f7ad927c20 ftpd: make DIR parameter work for non-root too: chdir to it instead of chroot
Unfortunately, chroot() works only for root user, because of attacks
on setuid binaries (make DIR/lib/ld-linux.so a shell, hardlink to
a setuid binary, chroot to DIR, execute it and get root shell).

function                                             old     new   delta
ftpd_main                                           2160    2180     +20

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2015-10-13 13:49:53 +02:00
..
2015-07-13 03:25:46 +02:00
2015-10-07 22:42:45 +02:00
2015-10-07 22:42:45 +02:00
2012-03-19 12:22:57 +01:00
2013-01-14 01:34:48 +01:00
2015-10-08 11:24:44 +02:00
2015-08-15 21:15:27 +02:00
2014-01-09 20:09:43 +01:00
2015-08-24 20:00:17 +02:00
2015-08-24 20:00:17 +02:00
2015-05-25 13:46:36 +02:00
2015-08-24 20:00:17 +02:00
2015-05-24 18:01:53 +02:00
2015-08-24 20:00:17 +02:00
2015-08-24 20:00:17 +02:00
2015-07-13 03:25:46 +02:00
2015-08-24 20:00:17 +02:00
2015-10-13 01:51:37 +02:00