mbox series

[v2,0/3] selinux: RCU conversion follow-ups

Message ID 20200826135906.1912186-1-omosnace@redhat.com (mailing list archive)
Headers show
Series selinux: RCU conversion follow-ups | expand

Message

Ondrej Mosnacek Aug. 26, 2020, 1:59 p.m. UTC
This series contains some follow-up patches for the policy rwlock to RCU
conversion that has been merged recently.

Passed selinux-testsuite under both release and debug Fedora kernel
configs.

v2:
- just dereference the policy pointer directly in security_read_policy()
- add a patch to remove the redundant policycap array from selinux_state
- drop the refcount patch for now and remove the RFC keyword
  - I'd like to check the performance impact before going further with it
  - also, it might be better to continue holding read_lock() in existing
    functions and only use the refcount approach in the IMA policy export
    function (the standard access pattern will work the same also after
    adding the refcount support)

Ondrej Mosnacek (3):
  selinux: simplify away security_policydb_len()
  selinux: eliminate the redundant policycap array
  selinux: remove the 'initialized' flag from selinux_state

 security/selinux/include/security.h | 53 ++++++------------
 security/selinux/selinuxfs.c        | 12 ++--
 security/selinux/ss/services.c      | 85 +++++++----------------------
 3 files changed, 43 insertions(+), 107 deletions(-)