From 1f77a0daa6ee71de17568c34ad924991cb30a3ee Mon Sep 17 00:00:00 2001 From: Zach Reizner Date: Mon, 4 Sep 2017 15:59:08 -0700 Subject: 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 Tested-by: Zach Reizner Reviewed-by: Jason Clinton Reviewed-by: Dylan Reid --- build_test.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'build_test.py') diff --git a/build_test.py b/build_test.py index 4064db1..17dc4d0 100755 --- a/build_test.py +++ b/build_test.py @@ -46,13 +46,15 @@ TEST_MODULES_PARALLEL = [ 'kvm', 'kvm_sys', 'net_sys', - 'sys_util', 'syscall_defines', 'virtio_sys', 'x86_64', ] -TEST_MODULES_SERIAL = ['io_jail'] +TEST_MODULES_SERIAL = [ + 'io_jail', + 'sys_util', + ] # Bright green PASS_COLOR = '\033[1;32m' -- cgit 1.4.1