libcap/distcheck.sh
Andrew G. Morgan 6b39555644 Linux 5.7 supports CAP_PERFMON
I should have checked before releasing 2.35. Sigh. Won't make that
mistake again.

Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2020-06-02 20:56:01 -07:00

14 lines
458 B
Bash
Executable File

#!/bin/bash
actual=$(wget -o/dev/null -O/dev/stdout https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/plain/include/uapi/linux/capability.h | grep "#define.CAP_LAST_CAP"|awk '{print $3}')
working=$(grep "#define.CAP_LAST_CAP" libcap/include/uapi/linux/capability.h|awk '{print $3}')
if [[ ${actual} = ${working} ]]; then
echo "up to date with officially named caps"
exit 0
fi
echo "want: ${actual}"
echo "have: ${working}"
exit 1