mkinitrd unification across distributions
 help / color / mirror / Atom feed
From: Lennart Poettering <lennart@poettering.net>
To: Roberto Sassu <roberto.sassu@polito.it>
Cc: initramfs@vger.kernel.org, systemd-devel@lists.freedesktop.org,
	linux-ima-user@lists.sourceforge.net,
	linux-security-module@vger.kernel.org, zohar@linux.vnet.ibm.com,
	harald@redhat.com, ramunno@polito.it
Subject: Re: [PATCH-v3 1/2] systemd: mount the securityfs filesystem at early stage
Date: Wed, 14 Mar 2012 17:54:14 +0100	[thread overview]
Message-ID: <20120314165414.GA853@tango.0pointer.de> (raw)
In-Reply-To: <4F5F9409.6060706@polito.it>

On Tue, 13.03.12 19:38, Roberto Sassu (roberto.sassu@polito.it) wrote:

> >>  static const MountPoint mount_table[] = {
> >>          { "proc",     "/proc",                  "proc",     NULL,                MS_NOSUID|MS_NOEXEC|MS_NODEV, true },
> >>          { "sysfs",    "/sys",                   "sysfs",    NULL,                MS_NOSUID|MS_NOEXEC|MS_NODEV, true },
> >>          { "devtmpfs", "/dev",                   "devtmpfs", "mode=755",          MS_NOSUID,                    true },
> >>+        { "securityfs", "/sys/kernel/security", "securityfs", NULL,              MS_NOSUID|MS_NOEXEC|MS_NODEV, true },
> >
> >Failure to mount securtiyfs might be fatal for _your_ purposes, but I'd
> >wager that not only are some people not interested in this, but some
> >people (myself included) might not even have securityfs in their kernel.
> >
> 
> Hi Dave
> 
> i think i can change this to false without breaking
> the other code, because at the beginning of the new
> file 'src/ima-setup.c' i check for the IMA support in
> the kernel by checking the existence of the
> '/sys/kernel/security/ima' directory. If the mount
> fails, this will be handled as the same as when the
> IMA support is disabled in the kernel.
> This could be acceptable because IMA requires the
> security filesystem as dependency.
> 
> I'll wait for other comments before reposting the patches.

Yes, please change this. It is important to us that systemd works well
on kernels without any special security features enabled.

Also, may I ask you to turn this feature on in configure, by default? I
presume that machines with this feature built into systemd but with no
policy file around will boot just fine, right? Hence enabling this by
default shouldn't hurt.

(The reason that I want this enabled by default is that I -- or other
devs -- build this locally the code as comprehensively as possible so
that things don't start to bitrot that easily)

Lennart

-- 
Lennart Poettering - Red Hat, Inc.

  reply	other threads:[~2012-03-14 16:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-13 16:15 [PATCH-v3 1/2] systemd: mount the securityfs filesystem at early stage Roberto Sassu
2012-03-13 16:15 ` [PATCH-v3 2/2] main: added support for loading IMA custom policies Roberto Sassu
     [not found] ` <1331655340-11595-1-git-send-email-roberto.sassu-8RLafaVCWuNeoWH0uzbU5w@public.gmane.org>
2012-03-13 17:39   ` [systemd-devel] [PATCH-v3 1/2] systemd: mount the securityfs filesystem at early stage Dave Reisner
2012-03-13 18:38     ` Roberto Sassu
2012-03-14 16:54       ` Lennart Poettering [this message]
2012-03-14 17:13         ` Roberto Sassu

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=20120314165414.GA853@tango.0pointer.de \
    --to=lennart@poettering.net \
    --cc=harald@redhat.com \
    --cc=initramfs@vger.kernel.org \
    --cc=linux-ima-user@lists.sourceforge.net \
    --cc=linux-security-module@vger.kernel.org \
    --cc=ramunno@polito.it \
    --cc=roberto.sassu@polito.it \
    --cc=systemd-devel@lists.freedesktop.org \
    --cc=zohar@linux.vnet.ibm.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox