1 .. title:: clang-tidy - android-cloexec-epoll-create1
3 android-cloexec-epoll-create1
4 =============================
6 ``epoll_create1()`` should include ``EPOLL_CLOEXEC`` in its type argument to
7 avoid the file descriptor leakage. Without this flag, an opened sensitive file
8 would remain open across a fork+exec to a lower-privileged SELinux domain.
18 epoll_create1(EPOLL_CLOEXEC);