selinux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Fix race conditions when reading out policy data
@ 2020-08-24 11:30 Ondrej Mosnacek
  2020-08-24 11:30 ` [PATCH 1/2] selinux: fix a race condition in security_read_policy() Ondrej Mosnacek
  2020-08-24 11:30 ` [PATCH 2/2] selinux: fix a race condition in sel_open_policy() Ondrej Mosnacek
  0 siblings, 2 replies; 7+ messages in thread
From: Ondrej Mosnacek @ 2020-08-24 11:30 UTC (permalink / raw)
  To: selinux, Paul Moore; +Cc: Stephen Smalley

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(-)

-- 
2.26.2


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-08-25 13:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-24 11:30 [PATCH 0/2] Fix race conditions when reading out policy data Ondrej Mosnacek
2020-08-24 11:30 ` [PATCH 1/2] selinux: fix a race condition in security_read_policy() Ondrej Mosnacek
2020-08-24 12:47   ` Stephen Smalley
2020-08-24 12:52     ` Stephen Smalley
2020-08-24 13:04       ` Ondrej Mosnacek
2020-08-25 13:28         ` Paul Moore
2020-08-24 11:30 ` [PATCH 2/2] selinux: fix a race condition in sel_open_policy() Ondrej Mosnacek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).