Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Aug 2012 18:41:06 +0200
From:      Holger Hans Peter Freyther <holger@freyther.de>
To:        freebsd-emulation@freebsd.org
Subject:   Linux SHM inside a jail
Message-ID:  <20120822164106.GE4301@localhost>

next in thread | raw e-mail | index | archive | help
Hi,

I have found the old thread[1] about SHM Linux emulation and have them
issues to get it to work inside a jail. I fail to create a /dev/shm directory
for the devfs inside the jail.

I added the 'link /tmp shm' to the /etc/devs.conf, I edited
/etc/defaults/devfs.rules to attempt to unhide shm and 'shm/*' but the
'shm/' directory does not become visible inside the jail.

any idea how to get this to work in a Jail?
	holger

PS: I looked at both GLIBC ntpl/sem_open.c and linux_stats.c. One option
would be to list another directory in /proc/mounts with tmpfs/shmfs and
replicate the check in linux_stats.c for this alternative directory.


[1] http://lists.freebsd.org/pipermail/freebsd-emulation/2011-January/008310.html



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120822164106.GE4301>