All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Moore <paul.moore@hp.com>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: selinux@tycho.nsa.gov
Subject: Re: [RFC PATCH v4 1/3] [SELinux] Add a capabilities bitmap to SELinux policy version 22
Date: Wed, 10 Oct 2007 14:31:57 -0400	[thread overview]
Message-ID: <200710101431.57330.paul.moore@hp.com> (raw)
In-Reply-To: <1192040194.2687.75.camel@moss-spartans.epoch.ncsc.mil>

On Wednesday 10 October 2007 2:16:34 pm Stephen Smalley wrote:
> On Fri, 2007-10-05 at 15:32 -0400, Paul Moore wrote:
> > @@ -1304,6 +1307,9 @@ int security_load_policy(void *data, size_t len)
> >  			return -EINVAL;
> >  		}
> >  		policydb_loaded_version = policydb.policyvers;
> > +		selinux_policycap_netpeer =
> > +		  ebitmap_get_bit(&policydb.policycaps,
> > +				  POLICYDB_CAPABILITY_NETPEER);
> >  		ss_initialized = 1;
> >  		seqno = ++latest_granting;
> >  		LOAD_UNLOCK;
>
> Only handles the initial policy load case, not reloads.

So it does, thanks.  I just added the same assignment further down in the 
security_load_policy() function to handle the reload case.

-- 
paul moore
linux security @ 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.

  reply	other threads:[~2007-10-10 18:31 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-05 19:32 [RFC PATCH v4 0/3] Added new checks for labeled IPsec & SECMARK [en|dis]able Paul Moore
2007-10-05 19:32 ` [RFC PATCH v4 1/3] [SELinux] Add a capabilities bitmap to SELinux policy version 22 Paul Moore
2007-10-10 18:16   ` Stephen Smalley
2007-10-10 18:31     ` Paul Moore [this message]
2007-10-10 21:02       ` Eric Paris
2007-10-10 21:41         ` Paul Moore
2007-10-05 19:32 ` [RFC PATCH v4 2/3] [SELinux] Better integration between peer labeling subsystems Paul Moore
2007-10-05 19:33 ` [RFC PATCH v4 3/3] [SELinux] Enable dynamic enable/disable of the network access checks Paul Moore
2007-10-07 21:53 ` [RFC PATCH v4 0/3] Added new checks for labeled IPsec & SECMARK [en|dis]able James Morris
2007-10-07 23:55   ` Paul Moore
2007-10-08 12:06     ` 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=200710101431.57330.paul.moore@hp.com \
    --to=paul.moore@hp.com \
    --cc=sds@tycho.nsa.gov \
    --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.