[Pkg-sysvinit-devel] Bug#386368: dev/shm mounted noexec breaks DOSEMU

Sven Joachim sven_joachim at web.de
Sun Sep 10 11:06:12 UTC 2006


Just FYI, my locally compiled DOSEMU 1.3.3 stopped working because it
needs /dev/shm to be mounted with the `exec' option.  In the file
src/arch/linux/mapping/mapfile.c it does

     mpool = mmap(0, mapsize, PROT_READ|PROT_WRITE|PROT_EXEC,
     		MAP_SHARED, tmpfile_fd, 0);

and that fails with EPERM if /dev/shm is mounted with the noexec option.

Disclaimer: I have no clue about DOSEMU programming and don't know
whether it really needs the PROT_EXEC flag.





More information about the Pkg-sysvinit-devel mailing list