accept4() is better to set SOCK_CLOEXEC flag to avoid file descriptor leakage.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D35363
[clang-tidy] Add a close-on-exec check on accept4() in Android module. ClosedPublic Authored by yawanng on Jul 13 2017, 10:34 AM.
Details Summary accept4() is better to set SOCK_CLOEXEC flag to avoid file descriptor leakage.
Diff Detail Event TimelineHerald added subscribers: xazax.hun, JDevlieghere, mgorny, srhines. · View Herald TranscriptJul 13 2017, 10:34 AM Eugene.Zelenko edited reviewers, added: alexfh, hokein, aaron.ballman; removed: chh.Jul 13 2017, 11:16 AM This revision now requires changes to proceed.Jul 15 2017, 1:31 AM This revision is now accepted and ready to land.Aug 16 2017, 8:29 AM Closed by commit rL311027: [clang-tidy] Add a close-on-exec check on accept4() in Android module. (authored by chh). · Explain WhyAug 16 2017, 10:47 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 110655 clang-tidy/android/AndroidTidyModule.cpp
clang-tidy/android/CMakeLists.txt
clang-tidy/android/CloexecAccept4Check.h
clang-tidy/android/CloexecAccept4Check.cpp
docs/ReleaseNotes.rst
docs/clang-tidy/checks/android-cloexec-accept4.rst
docs/clang-tidy/checks/list.rst
test/clang-tidy/android-cloexec-accept4.cpp
|