Skip to content

Commit

Permalink
Fix creation of dev/mqueue and dev/shm on Gentoo
Browse files Browse the repository at this point in the history
The dev/mqueue and dev/shm directories do not exist when using lxc.autodev, thus they have to be created upon mount.

Signed-off-by: Dennis Schridde <devurandom@gmx.net>
  • Loading branch information
devurandom authored and stgraber committed Jul 1, 2015
1 parent d9d1d83 commit ba29eca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/templates/gentoo.moresecure.conf.in
Expand Up @@ -8,8 +8,8 @@ lxc.include = @LXCTEMPLATECONFIG@/common.conf
# Container user ? see gentoo.common.conf

# do not mount sysfs, see http://blog.bofh.it/debian/id_413
lxc.mount.entry=mqueue dev/mqueue mqueue rw,nodev,noexec,nosuid 0 0
lxc.mount.entry=shm dev/shm tmpfs rw,nosuid,nodev,noexec,relatime 0 0
lxc.mount.entry=mqueue dev/mqueue mqueue rw,nodev,noexec,nosuid,create=dir 0 0
lxc.mount.entry=shm dev/shm tmpfs rw,nosuid,nodev,noexec,relatime,create=dir 0 0
lxc.mount.entry=run run tmpfs rw,nosuid,nodev,relatime,mode=755 0 0

# this part is based on 'linux capabilities', see: man 7 capabilities
Expand Down

0 comments on commit ba29eca

Please sign in to comment.