summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2019-04-29 10:35:42 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2019-04-29 10:36:35 +0200
commit96623af0af48e6025dfe7e6091438802c76d23b3 (patch)
tree9c112745ee80617d45a70a3a0883b22d898ff790
parent3640a12c85df4ac180e38f19038072df6b1d6d55 (diff)
Revert "systemd-conf: drop a obsolete patch"
The patch is not obsolete AFAIKT. i.e. the configuration file should NOT make mounts by udevd private or other processes will not be able to see the mount. This reverts commit 3640a12c85df4ac180e38f19038072df6b1d6d55.
-rw-r--r--recipes-core/systemd/systemd-conf_%.bbappend5
-rw-r--r--recipes-core/systemd/systemd/0001-systemd-udevd.service.in-set-MountFlags-shared.patch25
2 files changed, 30 insertions, 0 deletions
diff --git a/recipes-core/systemd/systemd-conf_%.bbappend b/recipes-core/systemd/systemd-conf_%.bbappend
new file mode 100644
index 0000000..8ebb6cc
--- /dev/null
+++ b/recipes-core/systemd/systemd-conf_%.bbappend
@@ -0,0 +1,5 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/systemd:"
+
+SRC_URI += " \
+ file://0001-systemd-udevd.service.in-set-MountFlags-shared.patch \
+"
diff --git a/recipes-core/systemd/systemd/0001-systemd-udevd.service.in-set-MountFlags-shared.patch b/recipes-core/systemd/systemd/0001-systemd-udevd.service.in-set-MountFlags-shared.patch
new file mode 100644
index 0000000..4665ea8
--- /dev/null
+++ b/recipes-core/systemd/systemd/0001-systemd-udevd.service.in-set-MountFlags-shared.patch
@@ -0,0 +1,25 @@
+From 974b3b3c9d723db3bb53fc9bbb40b7c1652c1b67 Mon Sep 17 00:00:00 2001
+From: Max Krummenacher <max.oss.09@gmail.com>
+Date: Thu, 29 Oct 2015 19:38:50 +0100
+Subject: [PATCH] systemd-udevd.service.in: set MountFlags=shared
+
+This allows for udevd automounting of drives accessible to all.
+---
+ units/systemd-udevd.service.in | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/units/systemd-udevd.service.in b/units/systemd-udevd.service.in
+index fc037b5a5..841d7a83f 100644
+--- a/units/systemd-udevd.service.in
++++ b/units/systemd-udevd.service.in
+@@ -24,7 +24,6 @@ ExecStart=@rootlibexecdir@/systemd-udevd
+ KillMode=mixed
+ WatchdogSec=3min
+ TasksMax=infinity
+-PrivateMounts=yes
+ MemoryDenyWriteExecute=yes
+ RestrictRealtime=yes
+ RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6
+--
+2.13.6
+