]> git.ipfire.org Git - thirdparty/suricata.git/commit
nfs: don't reuse file transactions
authorVictor Julien <victor@inliniac.net>
Thu, 18 Mar 2021 10:05:35 +0000 (11:05 +0100)
committerVictor Julien <victor@inliniac.net>
Wed, 1 Sep 2021 06:33:52 +0000 (08:33 +0200)
commit67759795c6405e449a80b282d290f84dc0fcd778
tree158745cad77b9a466074870cb2511061946c1d09
parentd74c18ee28fbda3a5b6d2ddb157cae90b70da0bf
nfs: don't reuse file transactions

After a file has been closed (CLOSE, COMMIT command or EOF/SYNC part of
READ/WRITE data block) mark it as such so that new file commands on that
file do not reuse the transaction.

When a file transfer is completed it will be flagged as such and not be
found anymore by the NFSState::get_file_tx_by_handle() method. This forces
a new transaction to be created.
rust/src/nfs/nfs.rs
rust/src/nfs/nfs3.rs
rust/src/nfs/nfs4.rs