crosvm/sys_util/src
Zach Reizner 1f77a0daa6 sys_util: use libc's openlog to connect to syslog
By using libc's openlog, we can ensure that the internal state of the
libc syslogger is consistent with the syslog module. Minijail will be
able to print to stderr and the syslog in the same way the logging
macros in crosvm do. The FD the syslog module uses is shared with libc
and via `syslog::get_fds`, jailed processes can inherit the needed FDs
to continue logging.

Now that `sys_log::init()` must be called in single threaded process,
this moves its tests to the list of the serially run ones in
build_test.py.

TEST=./build_test
BUG=None

Change-Id: I8dbc8ebf9d97ef670185259eceac5f6d3d6824ea
Reviewed-on: https://chromium-review.googlesource.com/649951
Commit-Ready: Zach Reizner <zachr@chromium.org>
Tested-by: Zach Reizner <zachr@chromium.org>
Reviewed-by: Jason Clinton <jclinton@chromium.org>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
2017-09-06 14:31:06 -07:00
..
errno.rs sys_util: Add conversion from errno io::Error. 2017-05-25 17:16:02 -07:00
eventfd.rs src_util: add poll module 2017-06-30 12:51:24 -07:00
fork.rs fix armv7a and aarch64 build errors and warnings 2017-09-01 12:39:18 -07:00
guest_address.rs sys_util: Add guest_memory 2017-05-25 22:51:14 -07:00
guest_memory.rs sys_util: add read_slice_at_addr to GuestMemory 2017-08-09 11:47:55 -07:00
handle_eintr.rs sys_util: move handle_eintr!() to sys_util so it can be reused 2017-06-30 12:51:24 -07:00
ioctl.rs sys_util: add ioctl module 2017-07-13 22:03:30 -07:00
lib.rs fix armv7a and aarch64 build errors and warnings 2017-09-01 12:39:18 -07:00
mmap.rs sys_util: add read_slice_at_addr to GuestMemory 2017-08-09 11:47:55 -07:00
poll.rs sys_util: add Pollable impls for UnixDatagram and UnixStream 2017-08-03 01:11:01 -07:00
shm.rs fix armv7a and aarch64 build errors and warnings 2017-09-01 12:39:18 -07:00
signal.rs sys_util: add signal module for killing threads 2017-06-30 12:51:24 -07:00
signalfd.rs sys_util: add signalfd module 2017-07-13 11:44:37 -07:00
sock_ctrl_msg.rs sys_util: allow sock_ctrl_msg to be more flexible with iovecs 2017-08-03 01:11:01 -07:00
struct_util.rs
syslog.rs sys_util: use libc's openlog to connect to syslog 2017-09-06 14:31:06 -07:00
tempdir.rs fix armv7a and aarch64 build errors and warnings 2017-09-01 12:39:18 -07:00
terminal.rs src_util: add terminal module 2017-06-30 12:51:24 -07:00