public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: James Morris <jmorris@namei.org>
To: Andrew Morton <akpm@osdl.org>
Cc: Stephen Smalley <sds@tycho.nsa.gov>, linux-kernel@vger.kernel.org
Subject: Re: [patch 1/1] selinux: Disable automatic labeling of new inodes when no policy is loaded
Date: Wed, 22 Feb 2006 15:55:02 -0500 (EST)	[thread overview]
Message-ID: <Pine.LNX.4.64.0602221551380.31473@excalibur.intercode> (raw)
In-Reply-To: <20060222123949.29a5cd2e.akpm@osdl.org>

On Wed, 22 Feb 2006, Andrew Morton wrote:

> Stephen Smalley <sds@tycho.nsa.gov> wrote:
> >
> > This patch disables the automatic labeling of new inodes on disk
> >  when no policy is loaded.  Please apply.
> 
> What is the reason for this change, and what will its effects be?

Discussion is here:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=180296

In short, we're changing the behavior so that when no policy is loaded, 
SELinux does not label files at all.  Currently it does add an 'unlabeled' 
label in this case, which we've found causes problems later.

SELinux always maintains a safe internal label if there is none, so with 
this patch, we just stick with that and wait until a policy is loaded 
before adding a persistent label on disk.


- James
-- 
James Morris
<jmorris@namei.org>

  reply	other threads:[~2006-02-22 20:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-22 19:36 [patch 1/1] selinux: Disable automatic labeling of new inodes when no policy is loaded Stephen Smalley
2006-02-22 20:39 ` Andrew Morton
2006-02-22 20:55   ` James Morris [this message]
2006-02-22 20:59   ` 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=Pine.LNX.4.64.0602221551380.31473@excalibur.intercode \
    --to=jmorris@namei.org \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sds@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox