rcu.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/3] selinux: RCU conversion follow-ups
@ 2020-08-25 15:20 Ondrej Mosnacek
  2020-08-25 15:20 ` [RFC PATCH 1/3] selinux: simplify away security_policydb_len() Ondrej Mosnacek
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Ondrej Mosnacek @ 2020-08-25 15:20 UTC (permalink / raw)
  To: selinux, Paul Moore
  Cc: Stephen Smalley, Lakshmi Ramasubramanian, rcu, Paul E . McKenney

This series contains some follow-up patches for the policy rwlock to RCU
conversion that has been merged recently. The first two are quite
straightforward, but I marked this series as RFC mainly because of the
last patch, which may need some more careful review/testing.

Note that the last patch also opens up the possiblity to implement
security_read_policy_kernel() from the IMA measurement patch [1] in a
simple way without race conditions.

I only did quick basic testing of these patches, so there may be some
bugs. I hope to do more thorough testing tomorrow. I'd just like to give
people chance to give some early feedback, especially on the last patch.

[1] https://lore.kernel.org/selinux/CAHC9VhQP7_rV+Oi6weLjVhrx2d8iu9UJ8zeE=ZcqnBMqngrJ4Q@mail.gmail.com/T/#mcb727e45670c8ee1f2da2ea0927e97f25e2395ad

Ondrej Mosnacek (3):
  selinux: simplify away security_policydb_len()
  selinux: remove the 'initialized' flag from selinux_state
  selinux: track policy lifetime with refcount

 security/selinux/include/security.h |  11 +-
 security/selinux/selinuxfs.c        |  12 +-
 security/selinux/ss/services.c      | 327 +++++++++++++---------------
 security/selinux/ss/services.h      |   6 +
 4 files changed, 165 insertions(+), 191 deletions(-)

-- 
2.26.2


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

end of thread, other threads:[~2020-09-07 17:18 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-25 15:20 [RFC PATCH 0/3] selinux: RCU conversion follow-ups Ondrej Mosnacek
2020-08-25 15:20 ` [RFC PATCH 1/3] selinux: simplify away security_policydb_len() Ondrej Mosnacek
2020-08-25 16:02   ` Stephen Smalley
2020-08-25 16:48     ` Ondrej Mosnacek
2020-08-25 15:20 ` [RFC PATCH 2/3] selinux: remove the 'initialized' flag from selinux_state Ondrej Mosnacek
2020-08-25 16:06   ` Stephen Smalley
2020-08-25 17:20     ` Ondrej Mosnacek
2020-08-25 17:46       ` Stephen Smalley
2020-08-25 15:20 ` [RFC PATCH 3/3] selinux: track policy lifetime with refcount Ondrej Mosnacek
2020-08-25 16:45   ` Stephen Smalley
2020-08-25 17:30     ` Ondrej Mosnacek
2020-08-25 17:50     ` Paul E. McKenney
2020-08-25 18:51   ` peter enderborg
2020-09-05 21:33   ` Lakshmi Ramasubramanian
2020-09-07  7:47     ` Ondrej Mosnacek
2020-09-07 14:03       ` Lakshmi Ramasubramanian

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