All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Moore <paul.moore@hp.com>
To: paulmck@linux.vnet.ibm.com
Cc: netdev@vger.kernel.org, linux-security-module@vger.kernel.org,
	selinux@tycho.nsa.gov
Subject: Re: [RFC PATCH] netlabel: Replace protocol/NetLabel linking with refrerence counts
Date: Sat, 9 Aug 2008 15:42:28 -0400	[thread overview]
Message-ID: <200808091542.28776.paul.moore@hp.com> (raw)
In-Reply-To: <20080809170840.GF8125@linux.vnet.ibm.com>

On Saturday 09 August 2008 1:08:40 pm Paul E. McKenney wrote:
> On Sat, Aug 09, 2008 at 10:43:22AM -0400, Paul Moore wrote:
> > NetLabel has always had a list of backpointers in the CIPSO DOI
> > definition structure which pointed to the NetLabel LSM domain
> > mapping structures which referenced the CIPSO DOI struct.  The
> > rationale for this was that when an administrator removed a CIPSO
> > DOI from the system all of the associated NetLabel LSM domain
> > mappings should be removed as well; a list of backpointers made
> > this a simple operation.
> >
> > Unfortunately, while the backpointers did make the removal easier
> > they were a bit of a mess from an implementation point of view
> > which was making further development difficult.  Since the removal
> > of a CIPSO DOI is a realtively rare event it seems to make sense to
> > remove this backpointer list as the optimization was hurting us
> > more then it was helping.  However, we still need to be able to
> > track when a CIPSO DOI definition is being used so replace the
> > backpointer list with a reference count.  In order to preserve the
> > current functionality of removing the associated LSM domain
> > mappings when a CIPSO DOI is removed we walk the LSM domain mapping
> > table, removing the relevant entries.
>
> Looks good from an RCU viewpoint!

Great, thanks for all your help :)

-- 
paul moore
linux @ hp

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

WARNING: multiple messages have this Message-ID (diff)
From: Paul Moore <paul.moore@hp.com>
To: paulmck@linux.vnet.ibm.com
Cc: netdev@vger.kernel.org, linux-security-module@vger.kernel.org,
	selinux@tycho.nsa.gov
Subject: Re: [RFC PATCH] netlabel: Replace protocol/NetLabel linking with refrerence counts
Date: Sat, 9 Aug 2008 15:42:28 -0400	[thread overview]
Message-ID: <200808091542.28776.paul.moore@hp.com> (raw)
In-Reply-To: <20080809170840.GF8125@linux.vnet.ibm.com>

On Saturday 09 August 2008 1:08:40 pm Paul E. McKenney wrote:
> On Sat, Aug 09, 2008 at 10:43:22AM -0400, Paul Moore wrote:
> > NetLabel has always had a list of backpointers in the CIPSO DOI
> > definition structure which pointed to the NetLabel LSM domain
> > mapping structures which referenced the CIPSO DOI struct.  The
> > rationale for this was that when an administrator removed a CIPSO
> > DOI from the system all of the associated NetLabel LSM domain
> > mappings should be removed as well; a list of backpointers made
> > this a simple operation.
> >
> > Unfortunately, while the backpointers did make the removal easier
> > they were a bit of a mess from an implementation point of view
> > which was making further development difficult.  Since the removal
> > of a CIPSO DOI is a realtively rare event it seems to make sense to
> > remove this backpointer list as the optimization was hurting us
> > more then it was helping.  However, we still need to be able to
> > track when a CIPSO DOI definition is being used so replace the
> > backpointer list with a reference count.  In order to preserve the
> > current functionality of removing the associated LSM domain
> > mappings when a CIPSO DOI is removed we walk the LSM domain mapping
> > table, removing the relevant entries.
>
> Looks good from an RCU viewpoint!

Great, thanks for all your help :)

-- 
paul moore
linux @ hp

  reply	other threads:[~2008-08-09 19:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-09 14:43 [RFC PATCH] netlabel: Replace protocol/NetLabel linking with refrerence counts Paul Moore
2008-08-09 14:43 ` Paul Moore
2008-08-09 17:08 ` Paul E. McKenney
2008-08-09 19:42   ` Paul Moore [this message]
2008-08-09 19:42     ` 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=200808091542.28776.paul.moore@hp.com \
    --to=paul.moore@hp.com \
    --cc=linux-security-module@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=paulmck@linux.vnet.ibm.com \
    --cc=selinux@tycho.nsa.gov \
    /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.