New issue
Advanced search Search tips

Issue 283 attachment: run.sh (277 bytes)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

set -eu

mkdir -p out

cflags="-Wall -Werror -O2 -static"
g++ $cflags privesc.cc -o out/init
g++ $cflags target_prog.c -o out/target_prog

(cd out && (echo init; echo target_prog) | cpio -H newc -o) | gzip >out/initrd.gz

python qemu_runner.py
python find_ptes.py