All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joshua Brindle <method@manicmethod.com>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: Eric Paris <eparis@redhat.com>,
	selinux@tycho.nsa.gov, jmorris@namei.org,
	Karl MacMillan <kmacmillan@mentalrootkit.com>,
	Paul Moore <paul.moore@hp.com>
Subject: Re: [PATCH] kernel: selinux: policy selectable handling of unknown classes and perms
Date: Thu, 02 Aug 2007 11:18:41 -0400	[thread overview]
Message-ID: <46B1F5D1.3020804@manicmethod.com> (raw)
In-Reply-To: <1186065564.2434.12.camel@moss-spartans.epoch.ncsc.mil>

Stephen Smalley wrote:
> On Wed, 2007-08-01 at 11:49 -0400, Eric Paris wrote:
>   
>> Allow policy to select, in much the same way as it selects MLS support,
>> how the kernel should handle access decisions which contain either
>> unknown classes or unknown permissions in unknown classes.  The three
>> choices are (from a kernel perspective)
>>
>> 0 - Deny unknown security access. (default)
>> 2 - reject loading policy if it does not contain all definitions
>> 4 - allow unknown security access
>>     
>
> If we leave the default as the current behavior (i.e. deny access if
> checking an unknown class or permission), then what exactly have we
> achieved with this patch?  The next time we introduce a new permission
> check in the kernel, anyone who installs that kernel on an existing
> distribution release will still encounter breakage.  It will only start
> providing benefit for newer distribution releases with policies built to
> have the non-default setting.
>
>   
I don't think we should change the default behavior of the policy, this 
could have some very unintended consequences to people building policies 
for security oriented systems that may not be aware of the build 
infrastructure changes necessary to keep the old behavior.

> Other points to ponder:
> - Would this have helped with the recent netlabel breakage?  I don't
> think so, as that was introducing a further check for an existing
> class/perm in the unlabeled case, not a new class/perm.
> - Does this help with letting us fix the ioctl hook?  Problem there is
> again that we are more likely to start mapping ioctls to read/write or
> getattr/setattr instead of the generic "ioctl" fallback rather than
> introducing new perms.
>   
How many policies give ioctl without giving read/write or 
getattr/setattr? Is this really an issue?

> - We still can't easily add new perms to common definitions (displaces
> class-specific ones).
>   
I'm not sure we are going to be able to handle this one until we extend 
object class/perm discovery to the kernel object managers, its a 
completely different problem from what this is attempting to solve.

> - Does this help us with secmark at all, e.g. can we eliminate
> compat_net?  Do we want to eliminate compat_net yet?  Fedora still seems
> to have compat_net=1.
> - We still can't purge obsolete classes/perms or reorganize the existing
> ones safely with this change.
>   
Ditto.

> So...is it worth it by itself?
>   



--
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-08-02 15:18 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-01 15:49 [PATCH] kernel: selinux: policy selectable handling of unknown classes and perms Eric Paris
2007-08-02 14:39 ` Stephen Smalley
2007-08-02 15:18   ` Joshua Brindle [this message]
2007-08-02 15:33     ` Stephen Smalley
2007-08-02 17:06       ` Joshua Brindle
2007-08-02 17:25       ` Eric Paris
2007-08-02 18:43         ` Paul Moore
2007-08-02 19:44           ` Joshua Brindle
2007-08-02 20:06             ` Stephen Smalley
2007-08-02 21:05               ` Joshua Brindle
2007-08-02 20:25             ` Eamon Walsh
2007-08-02 21:53               ` Daniel J Walsh
2007-08-02 19:58         ` Stephen Smalley
2007-08-09 19:19 ` Stephen Smalley
2007-08-21 19:40 ` 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=46B1F5D1.3020804@manicmethod.com \
    --to=method@manicmethod.com \
    --cc=eparis@redhat.com \
    --cc=jmorris@namei.org \
    --cc=kmacmillan@mentalrootkit.com \
    --cc=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.