From: Harald Hoyer Date: Fri, 17 Jun 2011 11:49:57 +0000 (+0200) Subject: base/init: do not mount devtmpfs with "noexec" X-Git-Tag: 011~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a2a1ea75f97da0c223be5d4916fdd08a42f97aa;p=thirdparty%2Fdracut.git base/init: do not mount devtmpfs with "noexec" https://bugzilla.redhat.com/show_bug.cgi?id=710711 mmap /dev/zero: Operation not permitted --- diff --git a/modules.d/99base/init b/modules.d/99base/init index d7eb9c55c..5975b25a2 100755 --- a/modules.d/99base/init +++ b/modules.d/99base/init @@ -101,7 +101,7 @@ fi if ! ismounted /dev; then # try to mount devtmpfs - if ! mount -t devtmpfs -o mode=0755,nosuid,noexec devtmpfs /dev >/dev/null 2>&1; then + if ! mount -t devtmpfs -o mode=0755,nosuid devtmpfs /dev >/dev/null 2>&1; then # if it failed fall back to normal tmpfs mount -t tmpfs -o mode=0755,nosuid tmpfs /dev >/dev/null 2>&1 # Make some basic devices first, let udev handle the rest