diff options
Diffstat (limited to 'security/apparmor/file.c')
-rw-r--r-- | security/apparmor/file.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/security/apparmor/file.c b/security/apparmor/file.c index 3022c0f4f0db..5d176f2530c9 100644 --- a/security/apparmor/file.c +++ b/security/apparmor/file.c | |||
@@ -215,6 +215,8 @@ static struct file_perms compute_perms(struct aa_dfa *dfa, unsigned int state, | |||
215 | /* change_profile wasn't determined by ownership in old mapping */ | 215 | /* change_profile wasn't determined by ownership in old mapping */ |
216 | if (ACCEPT_TABLE(dfa)[state] & 0x80000000) | 216 | if (ACCEPT_TABLE(dfa)[state] & 0x80000000) |
217 | perms.allow |= AA_MAY_CHANGE_PROFILE; | 217 | perms.allow |= AA_MAY_CHANGE_PROFILE; |
218 | if (ACCEPT_TABLE(dfa)[state] & 0x40000000) | ||
219 | perms.allow |= AA_MAY_ONEXEC; | ||
218 | 220 | ||
219 | return perms; | 221 | return perms; |
220 | } | 222 | } |