DescriptionPOSIX: CHECK() that file_util::ScopedFD fulfills promise.
CHECK() that file_util::ScopedFD will actually close the file descriptors.
There are security implications to not doing so, and logging an error is not
enough: file descriptor are security capabilities. Failing to close them is a
failure to revoke access to certain resources, which is heavily relied on in the
code base.
This CL also adds unit tests to file_util::ScopedFD.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=254129
Patch Set 1 #
Total comments: 4
Patch Set 2 : Address comments. #Patch Set 3 : Fix IOS compile failure. #
Messages
Total messages: 6 (0 generated)
|