OXYGENHUB
◆ v0.3.1 oxygenflow / .flow / jobs / isolation.sh
443 B · Bourne Again Shell (bash) · last changed OxygenFlow's own pipeline: layout, notes, size and isolation checks, then a summary, in microVMs on Earth 1 month ago source blame history raw
1
# What the job can see of the machine (docs/m0.md §2).
2
echo "kernel: $(uname -r), cpus: $(nproc), user: $(id -u)"
3
echo "interfaces: $(tail -n +3 /proc/net/dev | cut -d: -f1 | tr -d ' ' | tr '\n' ' ')"
4
if wget -q -T 3 -O /dev/null http://1.1.1.1 2>/dev/null; then echo "network reachable: not isolated" >&2; exit 1; fi
5
echo "no network"
6
if touch /etc/flow-probe 2>/dev/null; then echo "rootfs writable" >&2; exit 1; fi
7
echo "rootfs read-only"