]>
Commit | Line | Data |
---|---|---|
8b3d4ff0 | 1 | #!/usr/bin/env bash |
3a6ce677 | 2 | # SPDX-License-Identifier: LGPL-2.1-or-later |
1d42b86d | 3 | set -eu |
8b3d4ff0 | 4 | set -o pipefail |
81c58355 | 5 | |
8b3d4ff0 MB |
6 | ${1:?} -dM -include linux/capability.h -include "${2:?}" -include "${3:?}" - </dev/null | \ |
7 | awk '/^#define[ \t]+CAP_[A-Z_]+[ \t]+/ { print $2; }' | \ | |
8 | grep -v CAP_LAST_CAP |