commit | 2d6221641d66b502b1a49d3267bd8126b0448a1d | [log] [tgz] |
---|---|---|
author | Phil Sutter <phil@nwl.cc> | Tue Aug 08 16:33:44 2023 +0200 |
committer | Phil Sutter <phil@nwl.cc> | Thu Aug 10 14:14:55 2023 +0200 |
tree | 19bb7a57750581945536e3b48f0c66d94c2c2d00 | |
parent | 99cd1282779beecf337c4587ffc133ecafb8130f [diff] |
Use SOCK_CLOEXEC/O_CLOEXEC where available No need for the explicit fcntl() call, request the behaviour when opening the descriptor. One fcntl() call setting FD_CLOEXEC remains in extensions/libxt_bpf.c, the indirect syscall seems not to support passing the flag directly. Reported-by: Gaurav Gupta <g.gupta@samsung.com> Closes: https://bugzilla.netfilter.org/show_bug.cgi?id=1104 Signed-off-by: Phil Sutter <phil@nwl.cc>