Revert "[REVERT 2/2] "selinux: ensure we cleanup the internal AVC counters on error in avc_update()""
An upstream commit from 4.14 has addressed this issue. This reverts commit 4c1dc99232b9489255c98eb9df1d3fad8a9ce5d6. Signed-off-by: Sorayukii <sorayukii69@gmail.com>
This commit is contained in:
parent
26dbcabbe4
commit
43272970da
1 changed files with 1 additions and 1 deletions
|
|
@ -907,7 +907,7 @@ static int avc_update_node(struct selinux_avc *avc,
|
|||
if (orig->ae.xp_node) {
|
||||
rc = avc_xperms_populate(node, orig->ae.xp_node);
|
||||
if (rc) {
|
||||
kmem_cache_free(avc_node_cachep, node);
|
||||
avc_node_kill(node);
|
||||
goto out_unlock;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue