summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorChris Morin <cmtm@google.com>2019-02-19 20:31:56 -0800
committerchrome-bot <chrome-bot@chromium.org>2019-02-21 02:25:18 -0800
commitd9a0ff2842ab206b86f3a46b19e128824f2eebe4 (patch)
tree4a7ffc1bb7141dc0a456021b058d395228daf584 /init
parent857ddd23e7d1ec8aefd0a061e8f4b08ce61b2943 (diff)
downloadadhd-d9a0ff2842ab206b86f3a46b19e128824f2eebe4.tar.gz
journald: fix dangling /dev/log symlink
With the move to journald, the syslog socket at /dev/log has been replaced by a symlink pointing to /run/systemd/journal/dev-log. Certain processes using minijail bind mount /dev, but don't bind mount the symlink target, and so have a dangling symlink at /dev/log. Most processes using minijail use --mount-dev and mount /dev/log explicitly and so aren't affected by this. Mount /run/systemd/journal/ into the namespaces of processes that directly mount /dev. BUG=chromium:932761 TEST=Ensure log messages from affected processes can be seen in the journal TEST=Inspect the mount namespaces of all processes running on the system for any dangling symlinks at /dev/log Change-Id: I577e71540d8b78aad9672cc66f6825873689616d Reviewed-on: https://chromium-review.googlesource.com/1478386 Commit-Ready: Christopher Morin <cmtm@google.com> Tested-by: Christopher Morin <cmtm@google.com> Reviewed-by: Dylan Reid <dgreid@chromium.org>
Diffstat (limited to 'init')
-rw-r--r--init/cras.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/init/cras.sh b/init/cras.sh
index 3a68980f..7f9e3bb7 100644
--- a/init/cras.sh
+++ b/init/cras.sh
@@ -42,6 +42,7 @@ exec minijail0 -u cras -g cras -G -n --uts -v -l \
-k 'tmpfs,/run,tmpfs,MS_NODEV|MS_NOEXEC|MS_NOSUID,mode=755,size=10M' \
-b /run/cras,/run/cras,1 \
-b /run/dbus,/run/dbus,1 \
+ -b /run/systemd/journal \
-b /run/udev,/run/udev \
-b /dev,/dev \
-b /dev/shm,/dev/shm,1 \