Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 2.1 KB

OS-SPEC.md

File metadata and controls

33 lines (25 loc) · 2.1 KB

Linux

The Linux ABI consists of several special file paths and syscalls. Most applications targeted at Linux will require additional parts of the environment to be set up to run correctly.

This document attempts to define a minimal set of things that must exist for most applications.

ACIs that define the label os=linux can expect this environment by default.

Devices and File Systems

The following devices and filesystems MUST be made available in each application's filesystem

Path Type Notes
/proc procfs
/sys sysfs
/dev/null device
/dev/zero device
/dev/full device
/dev/random device
/dev/urandom device
/dev/tty device
/dev/console device
/dev/pts devpts
/dev/ptmx device Bind-mount or symlink of /dev/pts/ptmx
/dev/shm tmpfs

Common Files

An ACE MAY provide a default, functional /etc/hosts in each application's filesystem. If provided, this file SHOULD contain a localhost loopback entry. If an application's filesystem already contains /etc/hosts (whether because it is provided in the application's image, or mounted in using a volume) the ACE SHOULD NOT modify the file unless explicitly requested by the user.