Bump procd-2016-07-29-2c9f5d4af1559b840c42f1443ede9f9fe809c58b
This commit is contained in:
10
src/3P/procd/make_capabilities_h.sh
Executable file
10
src/3P/procd/make_capabilities_h.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
CC=$1
|
||||
[ -n "$TARGET_CC_NOCACHE" ] && CC=$TARGET_CC_NOCACHE
|
||||
|
||||
echo "#include <linux/capability.h>"
|
||||
echo "static const char *capabilities_names[] = {"
|
||||
echo "#include <linux/capability.h>" | ${CC} -E -dM - | grep '#define CAP' | grep -vE '(CAP_TO|CAP_LAST_CAP)' | \
|
||||
awk '{print $3" "$2}' | sort -n | awk '{print " ["$1"]\t= \""tolower($2)"\","}'
|
||||
echo "};"
|
||||
Reference in New Issue
Block a user