summaryrefslogtreecommitdiff
path: root/user/dracut/mount-run-without-noexec.patch
blob: 2bb9f2ad44a7d08edad4ffc9fa59e7feaeb7bdef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- dracut-048/modules.d/99base/init.sh.old	2018-07-06 08:37:51.000000000 +0000
+++ dracut-048/modules.d/99base/init.sh	2018-08-25 21:55:39.830000000 +0000
@@ -64,12 +64,8 @@
 
 if ! ismounted /run; then
     mkdir -m 0755 /newrun
-    if ! str_starts "$(readlink -f /bin/sh)" "/run/"; then
-        mount -t tmpfs -o mode=0755,noexec,nosuid,nodev,strictatime tmpfs /newrun >/dev/null
-    else
-        # the initramfs binaries are located in /run, so don't mount it with noexec
-        mount -t tmpfs -o mode=0755,nosuid,nodev,strictatime tmpfs /newrun >/dev/null
-    fi
+    # s6 runscripts live in /run, so don't mount it with noexec
+    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