Linux SHM inside a jail

Holger Hans Peter Freyther holger at freyther.de
Wed Aug 22 16:46:22 UTC 2012


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


More information about the freebsd-emulation mailing list