commit | 25662fef7cf58134a6f0295168c8c68f532687fa | [log] [tgz] |
---|---|---|
author | Stephen Hines <srhines@google.com> | Thu Feb 08 23:51:02 2024 -0800 |
committer | Stephen Hines <srhines@google.com> | Fri Feb 09 01:27:54 2024 -0800 |
tree | bd4ea45e3b251a0826c2c220bf4d286b22d58262 | |
parent | 30a5443aa27a0db6b255a6ea151e8d4dfa4434f9 [diff] |
Allow clippy::unnecessary_fallible_conversions FFI types like `c_long` vary on 32/64-bit, and the check is only needed on 64-bit conversions. Fixing this lint makes the code less readable. ``` error: use of a fallible conversion when an infallible one could be used --> packages/modules/Virtualization/authfs/fd_server/src/aidl.rs:380:36 | 380 | blockSize: st.block_size().try_into()?, | ^^^^^^^^ help: use: `into` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fallible_conversions = note: `-D clippy::unnecessary-fallible-conversions` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::unnecessary_fallible_conversions)]` ``` Bug: http://b/321303117 Test: toolchain/android_rust/test_compiler.py --prebuilt-path dist/rust-dev.tar.xz --target aosp_cf_x86_64_phone --all-rust Change-Id: I04c0ac34b8e084250803e8eeb17e0a109b10cbbc
Android Virtualization Framework (AVF) provides secure and private execution environments for executing code. AVF is ideal for security-oriented use cases that require stronger isolation assurances over those offered by Android’s app sandbox.
Visit our public doc site to learn more about what AVF is, what it is for, and how it is structured. This repository contains source code for userspace components of AVF.
If you want a quick start, see the getting started guideline and follow the steps there.
For in-depth explanations about individual topics and components, visit the following links.
AVF components:
AVF APIs:
How-Tos: