diff options
author | Yifan Hong <elsk@google.com> | 2021-02-18 16:03:59 -0800 |
---|---|---|
committer | Yifan Hong <elsk@google.com> | 2021-03-17 15:38:06 -0700 |
commit | a5cee93b5add53afd25624f0f445f98bc8048b19 (patch) | |
tree | 4f05c38f369f7ca8b1225d9c20c75e77ff324a4c /fastboot/fastboot.cpp | |
parent | c4073d3e13ac7a769adbf95d5042407096e22f8a (diff) |
fastbootd: add O_CLOEXEC/O_BINARY for OpenPartition
O_CLOEXEC ensures fastbootd does not leak fds to the parent
process (recovery).
O_BINARY has no effect in Linux, but it is explicit that
the file (partition) to read is a binary file.
Test: pass
Bug: 173654501
Change-Id: Idba922965ce666af1b7ee460ec7449fabd511c35
Diffstat (limited to 'fastboot/fastboot.cpp')
0 files changed, 0 insertions, 0 deletions