All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Paris <eparis@parisplace.org>
To: Joshua Brindle <jbrindle@tresys.com>
Cc: Stephen Smalley <sds@tycho.nsa.gov>,
	selinux@tycho.nsa.gov, James Morris <jmorris@redhat.com>,
	Karl MacMillan <kmacmillan@mentalrootkit.com>
Subject: RE: [RFC] Ability to allow unknown class and permissions
Date: Mon, 04 Dec 2006 13:49:30 -0500	[thread overview]
Message-ID: <1165258170.8203.4.camel@localhost.localdomain> (raw)
In-Reply-To: <6FE441CD9F0C0C479F2D88F959B015885C829F@exchange.columbia.tresys.com>

On Mon, 2006-12-04 at 13:13 -0500, Joshua Brindle wrote:
> > From: Stephen Smalley [mailto:sds@tycho.nsa.gov] 
> > 
> > Convenience should certainly be our primary design criteria.  
> > On synchronization, the issue is applying a property (compat_net or
> > handle_undefined) to a given policy and nothing else.  With 
> > booleans, we can preload them into the policy image before 
> > loading it.  With compat_net or handle_undefined, we have to 
> > switch it before (possibly affecting the currently running 
> > policy) or after (leaving open a window where the new policy 
> > has the wrong setting), and we have to have a mechanism for 
> > coordinating that switch and reload (vs. a single loading mechanism).
> > 
> 
> Ok, ok.. It sounds like you are pretty bitter about compat_net :)
> 
> Are you suggesting we add to libsemanage the ability to manipulate the
> config field? Do you dislike the idea of it being settable via some
> other means at all? Should someone be able to build a kernel that does
> not allow this option? Can it be switchable at runtime without a
> rebuild/reload?

How about both?  I can make a /selinux tunable which takes affect
immediately when changed.  And use 2 bits in the config field to set
that value on policy reload.  When I originally implemented this I had
a /selinux entry and protected it with SECURITY__LOAD_POLICY.  So policy
would still be able to enforce if it could be turned on or off.

Does that meet all the needs?  You can still change it later by hand
without building and loading a whole new policy, and we don't have
races/sync problems loading new policy since the policy itself would set
the value when it loads.

-Eric


--
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:[~2006-12-04 18:49 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-01 16:06 [RFC] Ability to allow unknown class and permissions Eric Paris
2006-12-01 17:18 ` Stephen Smalley
2006-12-01 18:41 ` Stephen Smalley
2006-12-02  3:28   ` Joshua Brindle
2006-12-04 14:46     ` Stephen Smalley
2006-12-04 15:11       ` Joshua Brindle
2006-12-04 15:24         ` Stephen Smalley
2006-12-04 18:13           ` Joshua Brindle
2006-12-04 18:49             ` Eric Paris [this message]
2006-12-04 19:39               ` Stephen Smalley
2006-12-04 20:06                 ` Karl MacMillan
2006-12-04 20:11                   ` Joshua Brindle
2006-12-04 20:15                     ` Karl MacMillan
2006-12-04 20:18                       ` Joshua Brindle
2006-12-04 20:25                         ` Karl MacMillan
2006-12-04 20:28                           ` Joshua Brindle
2006-12-04 20:25                             ` Stephen Smalley
2006-12-04 20:34                               ` Karl MacMillan
2006-12-04 20:44                                 ` Stephen Smalley
2006-12-04 21:05                                   ` Karl MacMillan
2006-12-05 13:31                                     ` Stephen Smalley
2006-12-05 13:59                                       ` Karl MacMillan
2006-12-04 20:33                             ` Karl MacMillan
2006-12-04 21:19                               ` Joshua Brindle
2006-12-04 21:34                                 ` Karl MacMillan
2006-12-04 23:20                                   ` Joshua Brindle
2006-12-05 13:41                                     ` Stephen Smalley
2006-12-05 13:33                                 ` Stephen Smalley

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=1165258170.8203.4.camel@localhost.localdomain \
    --to=eparis@parisplace.org \
    --cc=jbrindle@tresys.com \
    --cc=jmorris@redhat.com \
    --cc=kmacmillan@mentalrootkit.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.