Skip to content

Commit 033c40a

Browse files
committed
Merge tag 'apparmor-v6.2-rc9' of git://git.kernel.org/pub/scm/linux/kernel/git/jj/linux-apparmor
Pull apparmor fix from John Johansen: "Regression fix for getattr mediation of old policy" * tag 'apparmor-v6.2-rc9' of git://git.kernel.org/pub/scm/linux/kernel/git/jj/linux-apparmor: apparmor: Fix regression in compat permissions for getattr
2 parents 3402351 + cbb13e1 commit 033c40a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

security/apparmor/policy_compat.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,7 @@ static struct aa_perms *compute_fperms(struct aa_dfa *dfa)
160160
if (!table)
161161
return NULL;
162162

163-
/* zero init so skip the trap state (state == 0) */
164-
for (state = 1; state < state_count; state++) {
163+
for (state = 0; state < state_count; state++) {
165164
table[state * 2] = compute_fperms_user(dfa, state);
166165
table[state * 2 + 1] = compute_fperms_other(dfa, state);
167166
}

0 commit comments

Comments
 (0)