mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-10-26 05:44:24 +00:00
0060077114
The syslog subsystem tries to figure out the file descriptor for the connection to the system logger so that it can ensure that it doesn't get closed in each device process. However, the check does not work properly if there was already an open connection to the system logger. In this case the openlog call does not do anything and we end up guessing the wrong file descriptor number for the syslog connection. Work around this by adding a closelog() call before attempting all of this cleverness. In the long run this should be fixed properly by just bind mounting /dev/log into each device process's jail. BUG=none TEST=Running crosvm under minijail0 does not cause an InvalidFd error. Change-Id: Iffd535d62acdf8053817af74b9e97444c746a0cf Signed-off-by: Chirantan Ekbote <chirantan@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/851271 Reviewed-by: Zach Reizner <zachr@chromium.org> Reviewed-by: Dylan Reid <dgreid@chromium.org> |
||
---|---|---|
.. | ||
errno.rs | ||
eventfd.rs | ||
fork.rs | ||
guest_address.rs | ||
guest_memory.rs | ||
handle_eintr.rs | ||
ioctl.rs | ||
lib.rs | ||
mmap.rs | ||
passwd.rs | ||
poll.rs | ||
shm.rs | ||
signal.rs | ||
signalfd.rs | ||
sock_ctrl_msg.rs | ||
struct_util.rs | ||
syslog.rs | ||
tempdir.rs | ||
terminal.rs |