[PATCH] ntdll: Handle executable file mappings from noexec filesystems

Marcus Meissner marcus at jet.franken.de
Sat Dec 11 02:59:16 CST 2010

On Fri, Dec 10, 2010 at 02:05:08PM -0800, Scott Ritchie wrote:
> On 12/10/2010 06:44 AM, Alexandre Julliard wrote:
> > Marcus Meissner <meissner at suse.de> writes:
> > 
> >> At least map_file will copy the stuff into a new anon mapping and so make
> >> it work. quake2 at least runs fully from a "noexec" mounted USB stick.
> > 
> > That should be considered a bug. If you mount it noexec it's because you
> > don't trust the code that it may contain...
> > 
> Should we consider doing this for individual binary files as well?
> Stock (non-PPA) Ubuntu already forces this through a front-end script,
> but I shudder to think how many existing setups we might break with the
> change since apps are not executable by default (unless installed by
> Wine, thankfully).

I don't think we should.

"Download this file, chmod u+x setup.exe ; wine setup.exe" ... Does not 
really fly.

A wrapper like above could ask for the permission I guess.

CIao, Marcus

More information about the wine-devel mailing list