crosvm/sys_util/src
Daniel Verkamp 28359e141f sys_util: remove unsafe struct_util functions
Replace the uses of read_struct() and read_struct_slice() with the
safe DataInit::from_reader() implementation.

BUG=b:197263364
TEST=./test_all
TEST=Boot bzImage kernel
TEST=Boot raw ELF kernel extracted with extract_vmlinux

Change-Id: I80f98243bfb58a7ae93e1686bc4d92b0cd485cda
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3108249
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Chirantan Ekbote <chirantan@chromium.org>
2021-08-27 23:48:24 +00:00
..
android sys_util: Log to logd via liblog on Android. 2020-08-18 06:20:00 +00:00
linux sys_util: Fix clippy errors for dev-lang/rust-1.51.0 2021-04-16 15:14:25 +00:00
alloc.rs
capabilities.rs
clock.rs
descriptor.rs Use macros for trait implementations. 2021-08-17 16:07:51 +00:00
descriptor_reflection.rs sys_util: descriptor_reflection - fix warning in nightly 2021-04-19 22:17:09 +00:00
errno.rs implement Serialize and Deserialize for base and sys_util types 2021-03-29 19:39:52 +00:00
eventfd.rs Replace dup with fcntl(F_DUPFD_CLOEXEC) 2021-04-15 10:34:04 +00:00
external_mapping.rs
file_flags.rs
file_traits.rs
fork.rs remove dependencies on syscall_defines 2021-04-21 21:01:38 +00:00
handle_eintr.rs
ioctl.rs
lib.rs sys_util: remove unsafe struct_util functions 2021-08-27 23:48:24 +00:00
mmap.rs mmap: add use_hugepages() helper method 2021-04-20 13:24:16 +00:00
net.rs Add try_clone() and FromRawDescriptor for Tube and UnixSeqpacket 2021-08-17 11:48:07 +00:00
poll.rs base: Add WaitContext 2020-10-31 07:12:30 +00:00
priority.rs
rand.rs sys_util: Migrate additional code from libchromeos-rs. 2021-04-19 22:44:13 +00:00
raw_fd.rs
read_dir.rs sys_util: Migrate libchromeos::read_dir and syscall! 2021-04-22 13:43:57 +00:00
sched.rs Fix clippy warnings and Cargo.lock 2021-07-15 03:33:17 +00:00
scoped_path.rs sys_util: Migrate additional code from libchromeos-rs. 2021-04-19 22:44:13 +00:00
scoped_signal_handler.rs sys_util: Add scoped_signal_handler. 2021-04-16 18:04:32 +00:00
seek_hole.rs Simplify tests with tempfile::tempfile() 2020-08-27 00:39:03 +00:00
shm.rs remove dependencies on syscall_defines 2021-04-21 21:01:38 +00:00
signal.rs sys_util: Fix 1.51.0 acronym case clippy warnings. 2021-04-21 00:14:11 +00:00
signalfd.rs base: Add WaitContext 2020-10-31 07:12:30 +00:00
sock_ctrl_msg.rs sys_util: Fix 1.51.0 acronym case clippy warnings. 2021-04-21 00:14:11 +00:00
syslog.rs sys_util: Switch syslog error to thiserror 2021-05-18 16:42:20 +00:00
terminal.rs
timerfd.rs sys_util: Fix clippy errors and warnings 2021-03-04 20:23:12 +00:00
vsock.rs sys_util: Add Ord, and PartialOrd so VsockAddr can be used in BTreeMap. 2021-08-03 21:47:14 +00:00
write_zeroes.rs sys_util: Fix clippy errors and warnings 2021-03-04 20:23:12 +00:00