svn commit: r318313 - head/libexec/rtld-elf

Alexey Dokuchaev danfe at FreeBSD.org
Mon May 15 19:40:11 UTC 2017


On Mon, May 15, 2017 at 03:37:42PM -0400, Nikolai Lifanov wrote:
> On 05/15/2017 15:36, Alexey Dokuchaev wrote:
> > On Mon, May 15, 2017 at 10:25:29PM +0300, Konstantin Belousov wrote:
> >> ...
> >> The most advanced explanation that I was given in private was among
> >> the lines: "if you have an environment where users can upload content
> >> to a shared server, but have no access to chmod(2), no compilers, no
> >> scripting languages, etc." The person then admitted that (s)he does not
> >> consider it as an actual concern.
> > 
> > Would this now allow executing binaries (with or without +x bit) from
> > filesystems mounted with -o noexec?
> 
> No:
> 
> # zfs create -o mountpoint=/mnt -o exec=off tank/TEST
> # cp /bin/sh /mnt/
> # /mnt/sh
> /mnt/sh: Permission denied.
> # /libexec/ld-elf.so.1 /mnt/sh
> /mnt/sh: mmap of data failed: Permission denied

Good, thanks for conducting this test Nikolai.

./danfe


More information about the svn-src-head mailing list