aboutsummaryrefslogtreecommitdiffstats
path: root/extcap
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2022-12-10 17:49:59 -0800
committerGerald Combs <gerald@wireshark.org>2022-12-12 18:34:21 +0000
commitcb420c79117225fa5f896b07210cfe0ea74ce094 (patch)
treeecc145dbcf86717c4da19c1b786f6b7371fdfe0c /extcap
parent5aa1871ee0d0e87129d77328061aebace9983cde (diff)
Extcap: Create our fifo in a temporary directory.
Instead of creating a temp file, unlinking it, and creating a fifo with the same name, add create_tempdir() so that we can create a temporary directory and create a fifo inside that. This should avoid a race condition in Carbon Black Cloud antivirus, which if the timing is right, will stat the initial temporary *file*, miss the fact that it's been replaced with a *fifo*, and open and steal data^W^W read from it, leaving dumpcap to contend with the truncated remains. Adding the unexpected magic number to cap_pipe_open_live()'s error message helped to debug this. Leave it in since it's handy to have in that case. Ping #15587
Diffstat (limited to 'extcap')
0 files changed, 0 insertions, 0 deletions