jail: add support for defining devices
authorDaniel Golle <daniel@makrotopia.org>
Sun, 19 Jul 2020 20:45:53 +0000 (21:45 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 20 Jul 2020 03:20:21 +0000 (04:20 +0100)
commit6f078ae8bbe62730f08dc6fca45b022d27102798
treee9cf7dbec36fcdb5dd40e6fff9727684bd064b13
parentf5f305e2973876e6f324127ed697a849dc6736e2
jail: add support for defining devices

OCI run-time spec allows containers to specify devices to be created
in /dev in addition to the default devices.
Parse devices from linux section in config.json; clean-up and refactor
default entries in /dev into the same function using a similar scheme.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
jail/jail.c