diff options
| author | John Johansen <john.johansen@canonical.com> | 2013-02-18 19:09:34 -0500 |
|---|---|---|
| committer | John Johansen <john.johansen@canonical.com> | 2013-04-28 03:37:04 -0400 |
| commit | 180a6f5965a49535a7704c07691a6d1209904971 (patch) | |
| tree | 4b42a5409ff148e338c9eb77e66ede55b8bbf633 /security/apparmor | |
| parent | 8e4ff109d0d2194d98e9e16325bb4102f6463b43 (diff) | |
apparmor: move perm defines into policy_unpack
Signed-off-by: John Johansen <john.johansen@canonical.com>
Acked-by: Steve Beattie <sbeattie@ubuntu.com>
Diffstat (limited to 'security/apparmor')
| -rw-r--r-- | security/apparmor/include/match.h | 2 | ||||
| -rw-r--r-- | security/apparmor/policy_unpack.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/security/apparmor/include/match.h b/security/apparmor/include/match.h index bbbf56f5ba78..001c43aa0406 100644 --- a/security/apparmor/include/match.h +++ b/security/apparmor/include/match.h | |||
| @@ -20,8 +20,6 @@ | |||
| 20 | #define DFA_NOMATCH 0 | 20 | #define DFA_NOMATCH 0 |
| 21 | #define DFA_START 1 | 21 | #define DFA_START 1 |
| 22 | 22 | ||
| 23 | #define DFA_VALID_PERM_MASK 0xffffffff | ||
| 24 | #define DFA_VALID_PERM2_MASK 0xffffffff | ||
| 25 | 23 | ||
| 26 | /** | 24 | /** |
| 27 | * The format used for transition tables is based on the GNU flex table | 25 | * The format used for transition tables is based on the GNU flex table |
diff --git a/security/apparmor/policy_unpack.c b/security/apparmor/policy_unpack.c index 329b1fd30749..ca48a7d8d5b3 100644 --- a/security/apparmor/policy_unpack.c +++ b/security/apparmor/policy_unpack.c | |||
| @@ -290,6 +290,9 @@ static int unpack_strdup(struct aa_ext *e, char **string, const char *name) | |||
| 290 | return res; | 290 | return res; |
| 291 | } | 291 | } |
| 292 | 292 | ||
| 293 | #define DFA_VALID_PERM_MASK 0xffffffff | ||
| 294 | #define DFA_VALID_PERM2_MASK 0xffffffff | ||
| 295 | |||
| 293 | /** | 296 | /** |
| 294 | * verify_accept - verify the accept tables of a dfa | 297 | * verify_accept - verify the accept tables of a dfa |
| 295 | * @dfa: dfa to verify accept tables of (NOT NULL) | 298 | * @dfa: dfa to verify accept tables of (NOT NULL) |
