All of lore.kernel.org
 help / color / mirror / Atom feed
From: Colin Walters <walters@verbum.org>
To: Eric Paris <eparis@parisplace.org>
Cc: systemd Mailing List <systemd-devel@lists.freedesktop.org>,
	SELinux-NSA <SELinux@tycho.nsa.gov>
Subject: Re: [systemd-devel] [PATCH] selinux: Only attempt to load policy exactly once, in the real root
Date: Thu, 20 Feb 2014 21:21:34 +0000	[thread overview]
Message-ID: <20140220212635.7EC19C007AB@frontend1.nyi.mail.srv.osa> (raw)
In-Reply-To: <CACLa4psP63Q7YYMxVA1Ei6r6AmDSrCGn+=q0-ZFrawUF2apQMA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 713 bytes --]



On Thu, Feb 20, 2014 at 4:10 PM, Eric Paris <eparis@parisplace.org> 
wrote:
> I think the idea was
> 
> if we are not in the initrd - try to load policy
> if we are in the initrd and we find selinux_path() - try to load 
> policy
> 
> Thus embeded/thin who put everything inside the initrd will work (and
> the kernel enforce=1 will mean what is should)
> And where we don't put anything inside the initrd will still be
> correct since we'll try to load no matter what in the real root
> 
I guess then as long as we don't attempt to load policy again if we 
already have done so in the initrd - and yes, systemd already has logic 
of this form inside selinux_setup().

I'm testing this suggested patch now.





[-- Attachment #2: Type: text/html, Size: 879 bytes --]

  reply	other threads:[~2014-02-20 21:21 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-20 15:42 [PATCH] selinux: Only attempt to load policy exactly once, in the real root Colin Walters
2014-02-20 18:06 ` Stephen Smalley
2014-02-20 18:17   ` Colin Walters
2014-02-20 18:36     ` [systemd-devel] " Lennart Poettering
2014-02-20 18:47       ` Colin Walters
2014-02-20 18:50       ` Eric Paris
2014-02-20 19:26         ` Lennart Poettering
2014-02-20 19:27           ` Eric Paris
2014-02-20 19:45             ` Daniel J Walsh
2014-02-20 20:52               ` Colin Walters
2014-02-20 21:10                 ` Eric Paris
2014-02-20 21:21                   ` Colin Walters [this message]
2014-02-20 23:44                     ` Colin Walters
2014-02-21  2:33                       ` Lennart Poettering
2014-02-20 18:51     ` 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=20140220212635.7EC19C007AB@frontend1.nyi.mail.srv.osa \
    --to=walters@verbum.org \
    --cc=SELinux@tycho.nsa.gov \
    --cc=eparis@parisplace.org \
    --cc=systemd-devel@lists.freedesktop.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.