Re: svn commit: r228843 - head/contrib/telnet/libtelnet head/crypto/heimdal/appl/telnet/libtelnet head/include head/lib/libc/gen head/lib/libc/iconv head/lib/libc/include head/lib/libc/net head/libexec...

[ Available lists | Index of svn-src-all | Month of Jan 2012 | Week of 15 Jan 2012 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Andrey Chernov <ache@FreeBSD.ORG>
Date
15 Jan 2012 02:15:14
Subject
Re: svn commit: r228843 - head/contrib/telnet/libtelnet head/crypto/heimdal/appl/telnet/libtelnet head/include head/lib/libc/gen head/lib/libc/iconv head/lib/libc/include head/lib/libc/net head/libexec...
Message-ID
20120115021505.GA88927@vniz.net


[ Hide this part ]
On Sat, Dec 24, 2011 at 02:26:20AM -0800, Xin LI wrote:
> chroot(2) can create legitimate and secure environment where dlopen(2)
> is safe and necessary.

It seems it is internal contradiction in your argumentation:
1) You state that chroot(2) can create legitimate environment.
2) For ftpd's you disable .so loading in any case, i.e. even for
legitimate environment too and you want to do so intentionally refusing
passing responsibility to chroot(2) environment creator.

In that situation the only suggestion of something like public interface
is setting enviroment variable like "LD_SO_DISABLE" which prevents .so
loading in libc.

This is more clear than your stopgap.

And please don't say that enviroment variable can be overwritten by the
user inside ftpd itself, it is not so. And for case when some ftpd allows
to call _any_ external program, it could do anything, like with your
stopgap too.

--
http://ache.vniz.net/

Elapsed time: 0.148 seconds