Andrew G. Morgan | 6b39555 | 2020-06-02 20:56:01 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | 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}') |
| 4 | working=$(grep "#define.CAP_LAST_CAP" libcap/include/uapi/linux/capability.h|awk '{print $3}') |
| 5 | |
| 6 | if [[ ${actual} = ${working} ]]; then |
| 7 | echo "up to date with officially named caps" |
| 8 | exit 0 |
| 9 | fi |
| 10 | |
| 11 | echo "want: ${actual}" |
| 12 | echo "have: ${working}" |
| 13 | exit 1 |