Commit 71ecdc1
Revert "selinux: reject a permission value exceeding the class permission count"
This reverts commit 9b46fba.
The stable pick applied the nprim bound after symtab_insert() because
the upstream context (the SEL_VEC_MAX check from commit 18fa21f
"selinux: more strict policy parsing") does not exist in this tree.
On that error path perm_destroy() frees a key/datum pair that is
already linked into the symtab, leading to a double free when the
failed policydb is torn down.
Drop it here; it is re-applied later in this series in its upstream
form, after its strict-parsing prerequisite.
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 64561af commit 71ecdc1
1 file changed
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1168 | 1168 | | |
1169 | 1169 | | |
1170 | 1170 | | |
1171 | | - | |
1172 | | - | |
1173 | | - | |
1174 | 1171 | | |
1175 | 1172 | | |
1176 | 1173 | | |
| |||
0 commit comments