diff options
author | John Johansen <john.johansen@canonical.com> | 2013-08-14 14:27:32 -0400 |
---|---|---|
committer | John Johansen <john.johansen@canonical.com> | 2013-08-14 14:42:07 -0400 |
commit | 84f1f787421cd83bb7dfb34d584586f6a5fe7baa (patch) | |
tree | fbb958c9f7950f64feea732c7d78d0831120d540 /security/apparmor/Makefile | |
parent | 29b3822f1e132aa0f115f69730d6e4182df153d4 (diff) |
apparmor: export set of capabilities supported by the apparmor module
Signed-off-by: John Johansen <john.johansen@canonical.com>
Acked-by: Seth Arnold <seth.arnold@canonical.com>
Diffstat (limited to 'security/apparmor/Makefile')
-rw-r--r-- | security/apparmor/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/security/apparmor/Makefile b/security/apparmor/Makefile index 5706b74c857f..0831e049072d 100644 --- a/security/apparmor/Makefile +++ b/security/apparmor/Makefile | |||
@@ -18,7 +18,11 @@ quiet_cmd_make-caps = GEN $@ | |||
18 | cmd_make-caps = echo "static const char *const capability_names[] = {" > $@ ;\ | 18 | cmd_make-caps = echo "static const char *const capability_names[] = {" > $@ ;\ |
19 | sed $< >>$@ -r -n -e '/CAP_FS_MASK/d' \ | 19 | sed $< >>$@ -r -n -e '/CAP_FS_MASK/d' \ |
20 | -e 's/^\#define[ \t]+CAP_([A-Z0-9_]+)[ \t]+([0-9]+)/[\2] = "\L\1",/p';\ | 20 | -e 's/^\#define[ \t]+CAP_([A-Z0-9_]+)[ \t]+([0-9]+)/[\2] = "\L\1",/p';\ |
21 | echo "};" >> $@ | 21 | echo "};" >> $@ ;\ |
22 | echo -n '\#define AA_FS_CAPS_MASK "' >> $@ ;\ | ||
23 | sed $< -r -n -e '/CAP_FS_MASK/d' \ | ||
24 | -e 's/^\#define[ \t]+CAP_([A-Z0-9_]+)[ \t]+([0-9]+)/\L\1/p' | \ | ||
25 | tr '\n' ' ' | sed -e 's/ $$/"\n/' >> $@ | ||
22 | 26 | ||
23 | 27 | ||
24 | # Build a lower case string table of rlimit names. | 28 | # Build a lower case string table of rlimit names. |