3 ms·
This can help: https://man7.org/linux/man-pages/man2/close_range.2.html https://man7.org/linux/man-pages/man2/close_range.2.html close_range(3, ~0U, CLOSE_
by jcalvinowens 2y ago
This can help: https://man7.org/linux/man-pages/man2/close_range.2.html https://man7.org/linux/man-pages/man2/close_range.2.html
close_range(3, ~0U, CLOSE_RANGE_UNSHARE);
execve(....);
...but it's not very portable yet.
- deleted 2y ago[deleted]
- oseityphelysiol 2y agoI’ve never heard of it before. I work in an embedded environment where kernel version is known beforehand, so portability won’t be an issue. Thanks.