On Wed, Nov 01, 2006 at 12:37:17PM +0530, Ritesh Raj Sarraf wrote:
> Package: user-mode-linux
> Version: 2.6.18-1um-1
> Severity: normal
> 
> UML doesn't start anymore. Following is the message I get:
> 
> Checking that ptrace can change system call numbers...OK
> Checking syscall emulation patch for ptrace...OK
> Checking advanced syscall emulation patch for ptrace...OK
> Checking for tmpfs mount on /dev/shm...OK
> Checking PROT_EXEC mmap in /dev/shm/...failed: Operation not permitted
> /dev/shm/ must be not mounted noexec
> 
> /dev/shm/ is tmpfs and is mounted noexec
> 
> Please also follow the following thread for the particular patch which
> brings this issue:
> http://lkml.org/lkml/2006/4/10/255
> 
> I think the initscripts should be modified to mount /dev/shm as noexec
> or atleast should go into that mode once uml gets installed.

this affects also other applications, see:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=386945
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=378280

you can, at the moment, go for this workaround by adding in the /etc/fstab
the following line:

shm             /dev/shm        tmpfs    nodev,nosuid    0       0

whenever you would not patch the kernel.

Cheers

SteX

-- 
Stefano Melchior, GPG key = D52DF829 - <[EMAIL PROTECTED]>
http://www.openlabs.it/~stex    --     <[EMAIL PROTECTED]>
http://etinarcadiaego.dyndns.org  --  <[EMAIL PROTECTED]>
Skype ID "stefanomelchior"

Attachment: signature.asc
Description: Digital signature

Reply via email to