1 .. title:: clang-tidy - android-cloexec-dup
6 The usage of ``dup()`` is not recommended, it's better to use ``fcntl()``,
7 which can set the close-on-exec flag. Otherwise, an opened sensitive file would
8 remain open across a fork+exec to a lower-privileged SELinux domain.
18 int fd = fcntl(oldfd, F_DUPFD_CLOEXEC);