base/init: do not mount devtmpfs with "noexec"
authorHarald Hoyer <harald@redhat.com>
Fri, 17 Jun 2011 11:49:57 +0000 (13:49 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 17 Jun 2011 11:50:17 +0000 (13:50 +0200)
https://bugzilla.redhat.com/show_bug.cgi?id=710711

mmap /dev/zero: Operation not permitted

modules.d/99base/init

index d7eb9c55c17f867a496a6f7636f3d92911662cb5..5975b25a2dd2572e14b9d7d9c34af1eeb320c214 100755 (executable)
@@ -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