accept4() is better to set SOCK_CLOEXEC flag to avoid file descriptor leakage.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
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 111383 clang-tools-extra/trunk/clang-tidy/android/AndroidTidyModule.cpp
clang-tools-extra/trunk/clang-tidy/android/CMakeLists.txt
clang-tools-extra/trunk/clang-tidy/android/CloexecAccept4Check.h
clang-tools-extra/trunk/clang-tidy/android/CloexecAccept4Check.cpp
clang-tools-extra/trunk/docs/ReleaseNotes.rst
clang-tools-extra/trunk/docs/clang-tidy/checks/android-cloexec-accept4.rst
clang-tools-extra/trunk/docs/clang-tidy/checks/list.rst
clang-tools-extra/trunk/test/clang-tidy/android-cloexec-accept4.cpp
|