mbox series

[0/2] Fix race conditions when reading out policy data

Message ID 20200824113015.1375857-1-omosnace@redhat.com (mailing list archive)
Headers show
Series Fix race conditions when reading out policy data | expand

Message

Ondrej Mosnacek Aug. 24, 2020, 11:30 a.m. UTC
v2:
- avoid calling vmalloc_user() under read lock
- add one more patch that fixes another related race condition

v1: https://lore.kernel.org/selinux/CAFqZXNvdtpxveqesYMz3ZxoWGd_vi5euqy6c9gzhmdkKgbU-Fg@mail.gmail.com/T/

Ondrej Mosnacek (2):
  selinux: fix a race condition in security_read_policy()
  selinux: fix a race condition in sel_open_policy()

 security/selinux/include/security.h |  1 -
 security/selinux/selinuxfs.c        | 12 ++++++------
 security/selinux/ss/services.c      | 28 ++++++++++++----------------
 3 files changed, 18 insertions(+), 23 deletions(-)