diff options
author | John Johansen <john.johansen@canonical.com> | 2012-03-14 08:53:40 -0400 |
---|---|---|
committer | John Johansen <john.johansen@canonical.com> | 2012-03-14 09:15:12 -0400 |
commit | 33e521acff709d275950ec5bf8dd577d873cd61e (patch) | |
tree | 51ed534075632cdd41ca3df3ef8d5accb618480a /security/apparmor | |
parent | b1b4bc2ed94d157f3ed60c17a12b658ccb96a76f (diff) |
AppArmor: Add const qualifiers to generated string tables
Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'security/apparmor')
-rw-r--r-- | security/apparmor/Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/security/apparmor/Makefile b/security/apparmor/Makefile index 86103ce5b7a7..7e14edd9ec60 100644 --- a/security/apparmor/Makefile +++ b/security/apparmor/Makefile | |||
@@ -15,7 +15,7 @@ clean-files := capability_names.h rlim_names.h | |||
15 | # to | 15 | # to |
16 | # [1] = "dac_override", | 16 | # [1] = "dac_override", |
17 | quiet_cmd_make-caps = GEN $@ | 17 | quiet_cmd_make-caps = GEN $@ |
18 | cmd_make-caps = echo "static const char *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 "};" >> $@ |
@@ -43,7 +43,8 @@ cmd_make-caps = echo "static const char *capability_names[] = {" > $@ ;\ | |||
43 | # to | 43 | # to |
44 | # #define AA_FS_RLIMIT_MASK "fsize stack" | 44 | # #define AA_FS_RLIMIT_MASK "fsize stack" |
45 | quiet_cmd_make-rlim = GEN $@ | 45 | quiet_cmd_make-rlim = GEN $@ |
46 | cmd_make-rlim = echo "static const char *rlim_names[RLIM_NLIMITS] = {" > $@ ;\ | 46 | cmd_make-rlim = echo "static const char const *rlim_names[RLIM_NLIMITS] = {" \ |
47 | > $@ ;\ | ||
47 | sed $< >> $@ -r -n \ | 48 | sed $< >> $@ -r -n \ |
48 | -e 's/^\# ?define[ \t]+(RLIMIT_([A-Z0-9_]+)).*/[\1] = "\L\2",/p';\ | 49 | -e 's/^\# ?define[ \t]+(RLIMIT_([A-Z0-9_]+)).*/[\1] = "\L\2",/p';\ |
49 | echo "};" >> $@ ;\ | 50 | echo "};" >> $@ ;\ |