From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <20140220192644.GA28064@tango.0pointer.de> References: <20140220154726.19E25680237@frontend2.nyi.mail.srv.osa> <5306441F.8050207@tycho.nsa.gov> <20140220182215.4613AC00005@frontend1.nyi.mail.srv.osa> <20140220183643.GB24876@tango.0pointer.de> <20140220192644.GA28064@tango.0pointer.de> Date: Thu, 20 Feb 2014 14:27:19 -0500 Message-ID: Subject: Re: [systemd-devel] [PATCH] selinux: Only attempt to load policy exactly once, in the real root From: Eric Paris To: Lennart Poettering Content-Type: text/plain; charset=ISO-8859-1 Cc: Stephen Smalley , systemd Mailing List , SELinux-NSA List-Id: "Security-Enhanced Linux \(SELinux\) mailing list" List-Post: List-Help: I like it, if it's reasonable/possible On Thu, Feb 20, 2014 at 2:26 PM, Lennart Poettering wrote: > On Thu, 20.02.14 13:50, Eric Paris (eparis@parisplace.org) wrote: > >> Not really. If it doesn't exist on the final root fs and I put >> enforcing=1 on the command line, I expect the box to >> panic/fail/die/whatever.... > > OK, then maybe check "!in_initrd() || access("/etc/selinux/", F_OK) >= 0"? > > Lennart > > -- > Lennart Poettering, Red Hat