summaryrefslogtreecommitdiffstats
path: root/src/basic/generate-cap-list.sh
blob: 0628d2425fc91fe56f9b94443c39f8e604ba32fb (plain)
1
2
3
4
5
6
#!/bin/sh
set -eu

$1 -dM -include linux/capability.h -include "$2" -include "$3" - </dev/null | \
        awk '/^#define[ \t]+CAP_[A-Z_]+[ \t]+/ { print $2; }' | \
        grep -v CAP_LAST_CAP