From ff1413aa34c525bf01145b40b99acfb7868ab285 Mon Sep 17 00:00:00 2001 From: K900 Date: Fri, 29 Sep 2023 23:32:46 +0300 Subject: fix: fix legacy (syschdemd) mode Quoth man mount(2) > EINVAL > > A bind operation (MS_BIND) was requested where source > referred a mount namespace magic link (i.e., a > /proc/pid/ns/mnt magic link or a bind mount to such a > link) and the propagation type of the parent mount of > target was MS_SHARED, but propagation of the requested > bind mount could lead to a circular dependency that might > prevent the mount namespace from ever being freed. --- modules/systemd/syschdemd/syschdemd.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules') diff --git a/modules/systemd/syschdemd/syschdemd.sh b/modules/systemd/syschdemd/syschdemd.sh index fa0ffe5..75f10aa 100644 --- a/modules/systemd/syschdemd/syschdemd.sh +++ b/modules/systemd/syschdemd/syschdemd.sh @@ -38,6 +38,8 @@ run_in_namespace() { } start_systemd() { + mount --bind --make-private $rundir $rundir + daemonize \ -o $rundir/stdout \ -e $rundir/stderr \ -- cgit v1.2.3