All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris PeBenito <pebenito@gentoo.org>
To: Sven Vermeulen <sven.vermeulen@siphos.be>
Cc: selinux@tycho.nsa.gov
Subject: Re: SELinux with initramfs
Date: Sat, 14 Jan 2012 10:46:55 -0500	[thread overview]
Message-ID: <4F11A36F.1050001@gentoo.org> (raw)
In-Reply-To: <20120114143421.GB5632@siphos.be>

On 1/14/2012 9:34 AM, Sven Vermeulen wrote:
> On Sat, Jan 14, 2012 at 03:20:02PM +0100, Sven Vermeulen wrote:
>> An initramfs' /init will run in the kernel_t domain (and unconfined until
>> load_policy is called ?)
>
> Not unconfined, permissive.

It will run in the kernel initial SID ("kernel") until a policy is loaded.  Before the policy is loaded, it isn't permissive per se, as there is nothing to enforce.  SELinux is disabled in the "no policy loaded" sense (as opposed to the kernel command line selinux=0, unregistered SELinux LSM sense).  Once the policy is loaded, all of the labels will be set based on their initial SID; thus, the "kernel"-labeled processes get the kernel initial SID in the policy, kernel_t, and the initial enforcing/permissive state will be set based on the kernel command line enforcing= option, /etc/selinux/config, or kernel compiled-in default.

-- 
Chris PeBenito
<pebenito@gentoo.org>
Developer,
Hardened Gentoo Linux

--
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:[~2012-01-14 15:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-14 14:20 SELinux with initramfs Sven Vermeulen
2012-01-14 14:34 ` Sven Vermeulen
2012-01-14 15:46   ` Chris PeBenito [this message]
2012-01-16 14:46     ` Daniel J Walsh
2012-01-21 19:24       ` Sven Vermeulen
2012-01-23 18:16         ` Daniel J Walsh

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=4F11A36F.1050001@gentoo.org \
    --to=pebenito@gentoo.org \
    --cc=selinux@tycho.nsa.gov \
    --cc=sven.vermeulen@siphos.be \
    /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.