aboutsummaryrefslogtreecommitdiff
path: root/maintainers/check-syscalls.sh
blob: cd72ac23beb93ab07f7f54cba71f803a95437569 (plain)
1
2
3
4
5
6
7
#!/usr/bin/env bash

set -e

diff -u <(awk < src/libstore/build/local-derivation-goal.cc '/BEGIN extract-syscalls/ { extracting = 1; next }
match($0, /allowSyscall\(ctx, SCMP_SYS\(([^)]*)\)\);|\/\/ skip ([^ ]*)/, result) { print result[1] result[2] }
/END extract-syscalls/ { extracting = 0; next }') <(tail -n+2 "$1" | cut -d, -f 1)