Browse Source

base/init: do not mount devtmpfs with "noexec"

https://bugzilla.redhat.com/show_bug.cgi?id=710711

mmap /dev/zero: Operation not permitted
master
Harald Hoyer 14 years ago
parent
commit
6a2a1ea75f
  1. 2
      modules.d/99base/init

2
modules.d/99base/init

@ -101,7 +101,7 @@ fi @@ -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

Loading…
Cancel
Save