Branch: refs/heads/main Home: https://github.com/OpenAMP/libmetal Commit: 86fd1ba48e52403cbd9fcf30f10e1e94e6afd43e https://github.com/OpenAMP/libmetal/commit/86fd1ba48e52403cbd9fcf30f10e1e94e... Author: Kenta Sato tosainu.maple@gmail.com Date: 2022-05-06 (Fri, 06 May 2022)
Changed paths: M lib/system/linux/irq.c
Log Message: ----------- Create an eventfd object with `EFD_CLOEXEC` flag
The file descriptor `irq_notify_fd` does not have the close-on-exec (`FD_CLOEXEC`) flag so it possibly leaks to child processes. This adds an `EFD_CLOEXEC` flag to the second argument of the `exentfd(2)` call, which tells it to set an `FD_CLOEXEC` flag on the new file descriptor.
Signed-off-by: Kenta Sato tosainu.maple@gmail.com