[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100122012544.GV19799@ZenIV.linux.org.uk>
Date: Fri, 22 Jan 2010 01:25:44 +0000
From: Al Viro <viro@...IV.linux.org.uk>
To: Stepan Chatalyan <kehcho@...il.com>
Cc: linux-kernel@...r.kernel.org
Subject: Re: Hi all, bug or design flaw?
On Fri, Jan 22, 2010 at 02:05:50AM +0100, Stepan Chatalyan wrote:
> (1) I mount /tmp with noexec,nosuid,nodev options
> (4) I tried to execute it, but pass to bash ". /tmp/createdfile"
>
> [kehcho@...nadowt] [/tmp]$ . /tmp/createdfile
> Probe...
>
> It is a kernel bug or I just report a another one?
What the hell does it have to do with the kernel? You've told shell
to open a text file, read it and interpret its contents line by line.
It had done as instructed. Moreover, bash /tmp/createdfile would work
just as fine. Neither of those would attempt to do execve() on the
file in question; you are just telling shell what to open and read.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists