Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
- Loading branch information
Showing
3 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# CAP_SYS_ADMIN in init-user-ns is required for cgroup.devices | ||
lxc.cgroup.devices.deny = | ||
lxc.cgroup.devices.allow = | ||
|
||
# We can't move bind-mounts, so don't use /dev/lxc/ | ||
lxc.devttydir = | ||
|
||
# Extra bind-mounts for userns | ||
lxc.mount.entry = /dev/console dev/console none bind,create=file 0 0 | ||
lxc.mount.entry = /dev/null dev/null none bind,create=file 0 0 | ||
lxc.mount.entry = /dev/tty dev/tty none bind,create=file 0 0 | ||
lxc.mount.entry = /dev/urandom dev/urandom none bind,create=file 0 0 | ||
|
||
# Extra fstab entries as mountall can't mount those by itself | ||
lxc.mount.entry = /sys/firmware/efi/efivars sys/firmware/efi/efivars none bind,optional 0 0 | ||
lxc.mount.entry = /proc/sys/fs/binfmt_misc proc/sys/fs/binfmt_misc none bind,optional 0 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters