crosvm/sys_util
Zach Reizner 56158c873a sys_util: add safe wrappers getpid,geteuid,getguid,waitpid,kill
These functions are trivially safe and by adding them to sys_util, we
can remove some unsafe blocks from crosvm. This CL also replaces the
unsafe call sites with the safe alternatives.

There are no previous usages of gete{g,u}id(2), but they will be needed
in a future change.

TEST=None
BUG=None

Change-Id: Ief8787b298cfaa5b7fd1b83f0eba6660369e687d
Reviewed-on: https://chromium-review.googlesource.com/634268
Commit-Ready: Zach Reizner <zachr@chromium.org>
Tested-by: Zach Reizner <zachr@chromium.org>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
2017-08-28 18:21:37 -07:00
..
src sys_util: add safe wrappers getpid,geteuid,getguid,waitpid,kill 2017-08-28 18:21:37 -07:00
build.rs sys_util: add sock_ctrl_msg module for transmitting messages with FD 2017-07-20 21:21:29 -07:00
Cargo.toml sys_util: add sock_ctrl_msg module for transmitting messages with FD 2017-07-20 21:21:29 -07:00
sock_ctrl_msg.c sys_util: fix include in sock_ctrl_msg 2017-07-24 22:54:04 -07:00