All of lore.kernel.org
 help / color / mirror / Atom feed
From: Russell Coker <russell@coker.com.au>
To: Colin Walters <walters@verbum.org>
Cc: selinux@tycho.nsa.gov
Subject: Re: enforcement and initrds
Date: Tue, 15 Jul 2003 07:33:30 +1000	[thread overview]
Message-ID: <200307150733.30170.russell@coker.com.au> (raw)
In-Reply-To: <1058214662.19392.31.camel@columbia>

On Tue, 15 Jul 2003 06:31, Colin Walters wrote:
> 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 could compile with DEVELOP=y and use policy that prevents turning it off 
which is almost as good (anyone who can load a policy that allows turning it 
off can load a policy that permits everything).

> >  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.

Last time I did this it worked OK, SE Linux loaded the policy as part of the 
mount process.

-- 
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page


--
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 21:33 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
2003-07-14 21:33     ` Russell Coker [this message]
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=200307150733.30170.russell@coker.com.au \
    --to=russell@coker.com.au \
    --cc=selinux@tycho.nsa.gov \
    --cc=walters@verbum.org \
    /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.