Skip to content

Commit fbac038

Browse files
author
Mrunal Patel
committed
Merge pull request #164 from philips/add-devices-to-linux-spec
config-linux: specify the default devices/filesystems available
2 parents 6cc6798 + 3848a23 commit fbac038

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

config-linux.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,25 @@ uid/gid mappings describe the user namespace mappings from the host to the conta
4949
The mappings represent how the bundle `rootfs` expects the user namespace to be setup and the runtime SHOULD NOT modify the permissions on the rootfs to realize the mapping.
5050
*hostID* is the starting uid/gid on the host to be mapped to *containerID* which is the starting uid/gid in the container and *size* refers to the number of ids to be mapped.
5151
There is a limit of 5 mappings which is the Linux kernel hard limit.
52+
53+
## Default Devices and File Systems
54+
55+
The Linux ABI includes both syscalls and several special file paths.
56+
Applications expecting a Linux environment will very likely expect these files paths to be setup correctly.
57+
58+
The following devices and filesystems MUST be made available in each application's filesystem
59+
60+
| Path | Type | Notes |
61+
| ------------ | ------ | ------- |
62+
| /proc | [procfs](https://www.kernel.org/doc/Documentation/filesystems/proc.txt) | |
63+
| /sys | [sysfs](https://www.kernel.org/doc/Documentation/filesystems/sysfs.txt) | |
64+
| /dev/null | [device](http://man7.org/linux/man-pages/man4/null.4.html) | |
65+
| /dev/zero | [device](http://man7.org/linux/man-pages/man4/zero.4.html) | |
66+
| /dev/full | [device](http://man7.org/linux/man-pages/man4/full.4.html) | |
67+
| /dev/random | [device](http://man7.org/linux/man-pages/man4/random.4.html) | |
68+
| /dev/urandom | [device](http://man7.org/linux/man-pages/man4/random.4.html) | |
69+
| /dev/tty | [device](http://man7.org/linux/man-pages/man4/tty.4.html) | |
70+
| /dev/console | [device](http://man7.org/linux/man-pages/man4/console.4.html) | |
71+
| /dev/pts | [devpts](https://www.kernel.org/doc/Documentation/filesystems/devpts.txt) | |
72+
| /dev/ptmx | [device](https://www.kernel.org/doc/Documentation/filesystems/devpts.txt) | Bind-mount or symlink of /dev/pts/ptmx |
73+
| /dev/shm | [tmpfs](https://www.kernel.org/doc/Documentation/filesystems/tmpfs.txt) | |

0 commit comments

Comments
 (0)