diff options
| author | David Anderson <dvander@google.com> | 2020-02-26 14:59:08 -0800 |
|---|---|---|
| committer | David Anderson <dvander@google.com> | 2020-02-26 15:21:53 -0800 |
| commit | 940c6b26ef4ef7dfeac023d32523889a78ce6590 (patch) | |
| tree | 0791e2bcfd065c5761be41d0fabbc99c8d5573b8 /base/errors_unix.cpp | |
| parent | 8ef1e1b535ba860d4aef9ffecdeae2478852ab31 (diff) | |
libdm: Fix WaitForFile early-returning on failed accesses.
WaitForFile/WaitForDeletedFile both early return true if an error like
EPERM occurs. This was intentional because the code was modeled off
earlier fs_mgr code, but it makes libdm inherently racy if sepolicy is
not configured correctly. It's better to have these result in explicit
and consistent failures.
Bug: 148103327
Test: fastboot flashall
Change-Id: I0c78818962e1db91b556e523c418db28f7d78fae
Merged-In: I0c78818962e1db91b556e523c418db28f7d78fae
Diffstat (limited to 'base/errors_unix.cpp')
0 files changed, 0 insertions, 0 deletions
