Wine needs to disable the mmap_min_addr setting silently and automatically

Scott Ritchie scott at open-vote.org
Fri Jul 11 22:27:06 BST 2008


A change to the kernel in Hardy has completely broken Wine's support for
16 bit applications (as well as DOS ones).

Right now, users have to manually modify /etc/sysctl.conf and change
vm.mmap_min_addr = 65536  to vm.mmap_min_addr = 0.  Otherwise, some of
their programs refuse to launch and others may start crashing.  This is
obviously unworkable, so I've been thinking of various fixes.

The ideal fix would allow access to that memory only to Wine and similar
apps that are affected (eg dosemu and qemu), however I'm not sure if
there's a way to configure this application-specifically.

In the mean time perhaps it would be best if we created a new package,
named something like "early-memory-access", that contained little more
than a script to modify this entry for the user on install/removal.
Wine could then depend on that package, and users would thus only
install it if Wine were installed.

By doing this we lose the security for all applications if Wine is
installed (according to popcon approximately 10% of our users), however
I can't think of any better way to do it automatically.  Does this seem
like a reasonable approach?

Thanks,
Scott Ritchie



More information about the ubuntu-devel mailing list