Skip to content

selinux: fix changing booleans

Ondrej Mosnacek selinux 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 1 replyIn review
  2. v22 patches 2 repliesSuperseded
  3. v13 patches 12 repliesApplied

Changes in v3 from the cover letter

- move the avtab_alloc_common() call in avtab_alloc() under the conditional block

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2selinux: make nslot handling in avtab more robustsecurity/selinux/ss/avtab.c+11 -100 replies
2/2selinux: fix cond_list corruption when changing booleanssecurity/selinux/ss/avtab.c security/selinux/ss/avtab.h security/selinux/ss/conditional.c+33 -691 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/2] selinux: fix changing booleans

This series contains a patch that fixes broken conditional AV list duplication introduced by c7c556f1e81b ("selinux: refactor changing booleans") and a couple "and while I'm here..." cleanup patches on top.

v3:
- move the avtab_alloc_common() call in avtab_alloc() under the conditional block

v2:
- drop the follow-up cleanup patches from this series
- add a patch fixing the current handling of nrules/nslots being zero
- fix this handling also in the original v1 patch
- simplify the loop that computes nslots

Ondrej Mosnacek (2):
selinux: make nslot handling in avtab more robust
selinux: fix cond_list corruption when changing booleans

 security/selinux/ss/avtab.c       | 101 ++++++++++--------------------
 security/selinux/ss/avtab.h       |   2 +-
 security/selinux/ss/conditional.c |  12 ++--
 3 files changed, 40 insertions(+), 75 deletions(-)
Signature · 1 line
2.30.2