All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ondrej Mosnacek <omosnace@redhat.com>
To: selinux@vger.kernel.org, Paul Moore <paul@paul-moore.com>
Cc: Stephen Smalley <stephen.smalley.work@gmail.com>
Subject: [PATCH v2 0/3] selinux: RCU conversion follow-ups
Date: Wed, 26 Aug 2020 15:59:03 +0200	[thread overview]
Message-ID: <20200826135906.1912186-1-omosnace@redhat.com> (raw)

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

-- 
2.26.2


             reply	other threads:[~2020-08-26 14:05 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-26 13:59 Ondrej Mosnacek [this message]
2020-08-26 13:59 ` [PATCH v2 1/3] selinux: simplify away security_policydb_len() Ondrej Mosnacek
2020-08-26 14:05   ` Stephen Smalley
2020-08-27 13:56     ` Paul Moore
2020-08-27 13:57       ` Paul Moore
2020-08-26 13:59 ` [PATCH v2 2/3] selinux: eliminate the redundant policycap array Ondrej Mosnacek
2020-08-26 14:11   ` Stephen Smalley
2020-08-27  7:40     ` Ondrej Mosnacek
2020-08-26 13:59 ` [PATCH v2 3/3] selinux: remove the 'initialized' flag from selinux_state Ondrej Mosnacek
2020-08-26 14:15   ` Stephen Smalley
2020-08-27 14:05     ` Paul Moore
2020-08-27 14:16       ` Stephen Smalley
2020-08-27 14:23         ` Paul Moore

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200826135906.1912186-1-omosnace@redhat.com \
    --to=omosnace@redhat.com \
    --cc=paul@paul-moore.com \
    --cc=selinux@vger.kernel.org \
    --cc=stephen.smalley.work@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.