Skip to main content

Module device_layer

Module device_layer 

Source

Structs§

DeviceLayer

Functions§

create_device_layer
is_standard_device_path
Standard emulated character devices (/dev/null, /dev/zero, /dev/urandom, /dev/std{in,out,err}). On Linux these are world-readable/writable and have no host backing — they are pure kernel emulations whose semantics this device layer already enforces (read/write for the stream devices, EPERM for unlink/rename). The permission layer therefore treats them as always accessible, so guest fs ops (readFileSync/existsSync/redirects on /dev/null, …) behave like native Linux regardless of the VM file-permission policy. Excludes /dev/fd and /dev/pts, which carry process-specific semantics the policy may legitimately govern.