Files
systemd/src/basic/generate-cap-list.sh
Jörg Thalheim f96bc66901 fix bash shebangs
2021-05-17 22:27:41 +01:00

9 lines
275 B
Bash
Executable File

#!/usr/bin/env bash
# SPDX-License-Identifier: LGPL-2.1-or-later
set -eu
set -o pipefail
${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