mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-05 18:20:34 +00:00
4b47aa7105
validate_raw_fd assumes that the fd passed in was not created by crosvm and returns EBADF if it sees that the fd has the FD_CLOEXEC flag set. We can't use it for fds created by the fs device since those do have that flag set. We're already taking a `&dyn AsRawFd` as the parameter so just assume it's valid and clone it directly since there's no safe way to create an invalid one. BUG=none TEST=vm.Fio.virtiofs_dax* tests are no longer failing Change-Id: I10d9752e0960143fb58a63d2b76f64d34ec464d0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2809686 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Reviewed-by: Zach Reizner <zachr@chromium.org> Commit-Queue: Chirantan Ekbote <chirantan@chromium.org> |
||
---|---|---|
.. | ||
aarch64 | ||
arm | ||
x86_64 |