All of lore.kernel.org
 help / color / mirror / Atom feed
From: Colin Walters <walters@verbum.org>
To: Stephen Smalley <sds@epoch.ncsc.mil>
Cc: selinux@tycho.nsa.gov
Subject: Re: enforcement and initrds
Date: 14 Jul 2003 16:31:02 -0400	[thread overview]
Message-ID: <1058214662.19392.31.camel@columbia> (raw)
In-Reply-To: <1058185993.13738.597.camel@moss-huskers.epoch.ncsc.mil>

On Mon, 2003-07-14 at 08:33, Stephen Smalley wrote:

> If CONFIG_SECURITY_SELINUX_DEVELOP=n, then the kernel is always in
> enforcing mode, so you won't be able to defer setting enforcing mode to
> the initrd. 

That's a good point, but then again we could just make DEVELOP=n instead
mean that once enforcing mode was switched on, it couldn't be switched
off.

>  You can assign a single type to all of the ramfs entries
> via genfs_contexts (but nothing more granular without further support
> either in the ramfs code or in the SELinux module) and then grant
> permissions to it. 

I tried this, but there appears to be a bootstrapping problem; the
policy says that romfs uses genfs; but the policy has to be loaded from
the initrd, which isn't labeled until we know what the policy is.

>  Or you can grant permissions to unlabeled_t to
> permit booting.

How?  Again that's part of the policy, so we face the same bootstrapping
problem.  

One other alternative would be to make kernel_t (SECINITSID_KERNEL) a
special SID that can do anything.  Anything with that type is a kernel
thread anyways, right?  So it could really do anything.


--
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:[~2003-07-14 20:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-14  3:03 enforcement and initrds Colin Walters
2003-07-14 12:33 ` Stephen Smalley
2003-07-14 20:31   ` Colin Walters [this message]
2003-07-14 21:33     ` Russell Coker
2003-07-14 22:01       ` Colin Walters
2003-07-15 17:15     ` Stephen Smalley
2003-07-15 19:57       ` [patch] " Colin Walters

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=1058214662.19392.31.camel@columbia \
    --to=walters@verbum.org \
    --cc=sds@epoch.ncsc.mil \
    --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.