Bug#396506: [Pkg-uml-pkgs] Bug#396506: user-mode-linux: /dev/shm/ must be not mounted noexec

Stefano Melchior stefano.melchior at openlabs.it
Wed Nov 1 10:02:20 CET 2006


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 - <stefano.melchior at openlabs.it>
http://www.openlabs.it/~stex    --     <stefano.melchior at openlabs.it>
http://etinarcadiaego.dyndns.org  --  <ste at etinarcadiaego.dyndns.org>
Skype ID "stefanomelchior"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-uml-pkgs/attachments/20061101/02066fe2/attachment-0002.pgp


More information about the Pkg-uml-pkgs mailing list