<div dir="ltr">We used to have this but it was removed in the 232 upgrade:<div><br></div><div><div>    * Drop mount propagation patch, it only happens with libseccomp, OE doesnt</div><div>      enable it</div></div><div><br></div><div>Is this not the case?  Or are you enabling seccomp?  Maybe this should be a bbappend in meta-security?</div><div><br></div><div>Ross</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 22 February 2018 at 14:15, Hongzhi.Song <span dir="ltr">&lt;<a href="mailto:hongzhi.song@windriver.com" target="_blank">hongzhi.song@windriver.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">MountFlags&#39;s default value is shared in systemd-udevd.service. But upstream<br>
sets MountFlags with slave just for keeping mounts done by udev private to<br>
udevd, which causes block device mounted by udev unvisable but being busy for<br>
host. So we revert it to shared to be propagated to host.<br>
<br>
Signed-off-by: Hongzhi.Song &lt;<a href="mailto:hongzhi.song@windriver.com">hongzhi.song@windriver.com</a>&gt;<br>
---<br>
 ...evd-re-enable-mount-<wbr>propagation-for-udevd.patch | 33 ++++++++++++++++++++++<br>
 meta/recipes-core/systemd/<a href="http://systemd_234.bb" rel="noreferrer" target="_blank">syst<wbr>emd_234.bb</a>           |  1 +<br>
 2 files changed, 34 insertions(+)<br>
 create mode 100644 meta/recipes-core/systemd/<wbr>systemd/systemd-udevd-re-<wbr>enable-mount-propagation-for-<wbr>udevd.patch<br>
<br>
diff --git a/meta/recipes-core/systemd/<wbr>systemd/systemd-udevd-re-<wbr>enable-mount-propagation-for-<wbr>udevd.patch b/meta/recipes-core/systemd/<wbr>systemd/systemd-udevd-re-<wbr>enable-mount-propagation-for-<wbr>udevd.patch<br>
new file mode 100644<br>
index 0000000000..fce7bdd796<br>
--- /dev/null<br>
+++ b/meta/recipes-core/systemd/<wbr>systemd/systemd-udevd-re-<wbr>enable-mount-propagation-for-<wbr>udevd.patch<br>
@@ -0,0 +1,33 @@<br>
+From 11a3312d36109f5e5a7697ddb05c53<wbr>3c51e2cd75 Mon Sep 17 00:00:00 2001<br>
+From: &quot;Hongzhi.Song&quot; &lt;<a href="mailto:hongzhi.song@windriver.com">hongzhi.song@windriver.com</a>&gt;<br>
+Date: Mon, 19 Feb 2018 20:43:02 -0500<br>
+Subject: [PATCH] systemd-udevd: re-enable mount propagation for udevd<br>
+<br>
+Upstream-Status: Inappropriate [embedded specific]<br>
+<br>
+Change the mount propagation flag from MountFlags=slave to MountFlags=shared<br>
+(default). Use shared to ensure that mounts and unmounts are propagated from<br>
+systemd&#39;s namespace to the service&#39;s namespace and vice versa, while use slave<br>
+to run processes so that none of their mounts and unmounts will propagate to<br>
+the host.<br>
+<br>
+Signed-off-by: Hongzhi.Song &lt;<a href="mailto:hongzhi.song@windriver.com">hongzhi.song@windriver.com</a>&gt;<br>
+---<br>
+ units/<a href="http://systemd-udevd.service.in" rel="noreferrer" target="_blank">systemd-udevd.service.in</a> | 1 -<br>
+ 1 file changed, 1 deletion(-)<br>
+<br>
+diff --git a/units/<a href="http://systemd-udevd.service.in" rel="noreferrer" target="_blank">systemd-udevd.service.<wbr>in</a> b/units/<a href="http://systemd-udevd.service.in" rel="noreferrer" target="_blank">systemd-udevd.service.<wbr>in</a><br>
+index fc037b5..841d7a8 100644<br>
+--- a/units/<a href="http://systemd-udevd.service.in" rel="noreferrer" target="_blank">systemd-udevd.service.<wbr>in</a><br>
++++ b/units/<a href="http://systemd-udevd.service.in" rel="noreferrer" target="_blank">systemd-udevd.service.<wbr>in</a><br>
+@@ -24,7 +24,6 @@ ExecStart=@rootlibexecdir@/<wbr>systemd-udevd<br>
+ KillMode=mixed<br>
+ WatchdogSec=3min<br>
+ TasksMax=infinity<br>
+-MountFlags=slave<br>
+ MemoryDenyWriteExecute=yes<br>
+ RestrictRealtime=yes<br>
+ RestrictAddressFamilies=AF_<wbr>UNIX AF_NETLINK AF_INET AF_INET6<br>
+--<br>
+2.8.1<br>
+<br>
diff --git a/meta/recipes-core/systemd/<a href="http://systemd_234.bb" rel="noreferrer" target="_blank">sy<wbr>stemd_234.bb</a> b/meta/recipes-core/systemd/<a href="http://systemd_234.bb" rel="noreferrer" target="_blank">sy<wbr>stemd_234.bb</a><br>
index babc351cc8..42f4f1ec76 100644<br>
--- a/meta/recipes-core/systemd/<a href="http://systemd_234.bb" rel="noreferrer" target="_blank">sy<wbr>stemd_234.bb</a><br>
+++ b/meta/recipes-core/systemd/<a href="http://systemd_234.bb" rel="noreferrer" target="_blank">sy<wbr>stemd_234.bb</a><br>
@@ -32,6 +32,7 @@ SRC_URI += &quot; \<br>
            file://0001-main-skip-many-<wbr>initialization-steps-when-<wbr>running-in-.patch \<br>
            file://CVE-2017-18078.patch \<br>
            file://0001-resolved-fix-loop-<wbr>on-packets-with-pseudo-dns-<wbr>types.patch \<br>
+          file://systemd-udevd-re-<wbr>enable-mount-propagation-for-<wbr>udevd.patch \<br>
            &quot;<br>
 SRC_URI_append_qemuall = &quot; file://0001-core-device.c-<wbr>Change-the-default-device-<wbr>timeout-to-2.patch&quot;<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
2.13.3<br>
<br>
--<br>
______________________________<wbr>_________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.<wbr>openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/<wbr>mailman/listinfo/openembedded-<wbr>core</a><br>
</font></span></blockquote></div><br></div>