mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 00:14:44 +01:00
15 lines
401 B
Bash
15 lines
401 B
Bash
![]() |
#!/bin/bash -e
|
||
|
|
||
|
# =====================
|
||
|
# generate list of capabilities based on
|
||
|
# /usr/include/linux/capabilities.h for use in multiple locations in
|
||
|
# the source tree
|
||
|
# =====================
|
||
|
|
||
|
echo "#include <linux/capability.h>" | \
|
||
|
cpp -dM | \
|
||
|
LC_ALL=C sed -n \
|
||
|
-e '/CAP_EMPTY_SET/d' \
|
||
|
-e 's/^\#define[ \t]\+CAP_\([A-Z0-9_]\+\)[ \t]\+\([0-9xa-f]\+\)\(.*\)$/CAP_\1/p' | \
|
||
|
LC_ALL=C sort
|