initramfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Guido Trentalancia <guido-D1bseh+SzQhuxeB9wqlrNw@public.gmane.org>
To: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
Subject: [PATCH] dracut: 99base: do not mount /run with the "noexec" option
Date: Tue, 12 Apr 2016 16:07:40 +0200	[thread overview]
Message-ID: <1460470060.3152.3.camel@trentalancia.net> (raw)

Do not mount the /run directory with the "noexec" option, otherwise the
system bootup fails (no binary can be executed, everything fails with
permission denied errors).

The bug was introduced in version 042 (11 Jun 2015) and affects all
versions up to 044 (latest) and including git checked out on 12 Apr 2016.

Signed-off-by: Guido Trentalancia <guido-D1bseh+SzQhuxeB9wqlrNw@public.gmane.org>
---
 modules.d/99base/init.sh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- dracut-044/modules.d/99base/init.sh	2015-11-25 14:22:28.000000000 +0100
+++ dracut-044-99base-init-should-mount-newrun-as-exec/modules.d/99base/init.sh	2016-04-12 15:37:44.163185387 +0200
@@ -64,7 +64,7 @@ fi
 
 if ! ismounted /run; then
     mkdir -m 0755 /newrun
-    mount -t tmpfs -o mode=0755,noexec,nosuid,nodev,strictatime tmpfs /newrun >/dev/null
+    mount -t tmpfs -o mode=0755,nosuid,nodev,strictatime tmpfs /newrun >/dev/null
     cp -a /run/* /newrun >/dev/null 2>&1
     mount --move /newrun /run
     rm -fr -- /newrun

             reply	other threads:[~2016-04-12 14:07 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-12 14:07 Guido Trentalancia [this message]
     [not found] ` <1460470060.3152.3.camel-D1bseh+SzQhuxeB9wqlrNw@public.gmane.org>
2016-04-12 14:24   ` [PATCH] dracut: 99base: do not mount /run with the "noexec" option Harald Hoyer
     [not found]     ` <570D0533.6070704-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-04-12 14:41       ` Guido Trentalancia
     [not found]         ` <1460472110.3152.14.camel-D1bseh+SzQhuxeB9wqlrNw@public.gmane.org>
2016-04-14 10:33           ` Harald Hoyer
     [not found]             ` <570F71FD.3020101-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-04-14 11:03               ` Dracut GitHub Import Bot
     [not found]                 ` <146063178363.23619.10614635055686320261.githubbot-QUxPd85Im3zrDilwLfPoKQ@public.gmane.org>
2016-04-14 11:46                   ` Guido Trentalancia
2016-04-14 11:18               ` Guido Trentalancia
     [not found]                 ` <1460632714.2782.3.camel-D1bseh+SzQhuxeB9wqlrNw@public.gmane.org>
2016-04-14 11:30                   ` Harald Hoyer
     [not found]                     ` <570F7F54.5050904-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-04-14 11:41                       ` [PATCH v2] " Guido Trentalancia
2016-04-12 15:07   ` [PATCH] " Guido Trentalancia

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=1460470060.3152.3.camel@trentalancia.net \
    --to=guido-d1bseh+szqhuxeb9wqlrnw@public.gmane.org \
    --cc=harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).