Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 May 2005 14:05:08 +0200
From:      Andre Albsmeier <andre@albsmeier.net>
To:        Colin Percival <cperciva@freebsd.org>
Cc:        current@freebsd.org
Subject:   Re: MNT_USER?
Message-ID:  <20050520120508.GB10236@schlappy.albsmeier.net>
In-Reply-To: <42775C1A.2080400@freebsd.org>
References:  <E1DSv8D-000EwW-37@cs1.cs.huji.ac.il> <42775C1A.2080400@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 03-May-2005 at 04:10:18 -0700, Colin Percival wrote:
> Danny Braniss wrote:
> > BTW, this, the MNT_NOEXEC, uncovered, IMHO, a bug in libexec/rtld-elf/rtld.c
> > where it's now checking for MNT_NOEXEC, but only if LD_LIBRARY_PATH is set!
> 
> This is not a bug.  Checking for MNT_NOEXEC adds a cost in performance, and
> it is not necessary if LD_LIBRARY_PATH, LD_PRELOAD, and LD_LIBMAP* are not
> set -- based on the assumption, that is, that no (sane) sysadmin would ever
> put a MNT_NOEXEC-mounted filesystem into the default library path.
> 
> I agree that it's a bit counter-intuitive, but it's really just a case of
> saving time by not checking for something which should Never Happen. :-)
> 
> Colin Percival
> PS. Bravo to Ian for tracking down the bug in NFS -- I spent a while looking

You may want to look at the PR mentioned in the commit message to
see who did this initially. I just changed it at a different place
of the kernel (the same way as it was done in 4.x).

	-Andre

> for this, but got hopelessly lost.
> _______________________________________________
> freebsd-stable@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"

-- 
An NT server can be run by an idiot, and usually is.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050520120508.GB10236>