Repository navigation
Commit 7b94c99
selinux: ensure we cleanup the internal AVC counters on error in avc_insert()
[ Upstream commit d8db60c ]
Fix avc_insert() to call avc_node_kill() if we've already allocated
an AVC node and the code fails to insert the node in the cache.
Fixes: fa1aa14 ("selinux: extended permissions for ioctls")
Reported-by: rsiddoji@codeaurora.org
Suggested-by: Stephen Smalley <sds@tycho.nsa.gov>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 06389f6 commit 7b94c99
1 file changed
Lines changed: 24 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
617 | 617 | | |
618 | 618 | | |
619 | 619 | | |
| 620 | + | |
| 621 | + | |
620 | 622 | | |
621 | 623 | | |
622 | | - | |
| 624 | + | |
623 | 625 | | |
624 | 626 | | |
625 | | - | |
626 | | - | |
627 | | - | |
628 | | - | |
629 | | - | |
630 | | - | |
631 | | - | |
632 | | - | |
633 | | - | |
634 | | - | |
635 | | - | |
636 | | - | |
637 | | - | |
638 | | - | |
| 627 | + | |
| 628 | + | |
639 | 629 | | |
640 | | - | |
641 | | - | |
642 | | - | |
643 | | - | |
644 | | - | |
645 | | - | |
646 | | - | |
647 | | - | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
648 | 646 | | |
649 | | - | |
650 | | - | |
651 | | - | |
652 | 647 | | |
653 | | - | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
654 | 651 | | |
655 | 652 | | |
656 | 653 | | |
| |||
0 commit comments