Skip to content

Commit

Permalink
rust/nfs: implement events
Browse files Browse the repository at this point in the history
Remove lots of panic statements in favor of setting non-fatal events.

Bug #2175.
  • Loading branch information
victorjulien committed Jul 13, 2017
1 parent 3e9b583 commit a306ccf
Show file tree
Hide file tree
Showing 7 changed files with 189 additions and 99 deletions.
3 changes: 2 additions & 1 deletion rules/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ modbus-events.rules \
app-layer-events.rules \
files.rules \
dnp3-events.rules \
ntp-events.rules
ntp-events.rules \
nfs-events.rules
8 changes: 8 additions & 0 deletions rules/nfs-events.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# NFS app layer event rules
#
# SID's fall in the 2223000+ range. See https://redmine.openinfosecfoundation.org/projects/suricata/wiki/AppLayer
#
# These sigs fire at most once per connection.
#
alert nfs any any -> any any (msg:"SURICATA NFS malformed request data"; flow:to_server; app-layer-event:nfs.malformed_data; classtype:protocol-command-decode; sid:2223000; rev:1;)
alert nfs any any -> any any (msg:"SURICATA NFS malformed response data"; flow:to_client; app-layer-event:nfs.malformed_data; classtype:protocol-command-decode; sid:2223001; rev:1;)
2 changes: 2 additions & 0 deletions rust/gen-c-headers.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@
"DetectEngineState": "DetectEngineState",
"core::DetectEngineState": "DetectEngineState",
"core::AppLayerDecoderEvents": "AppLayerDecoderEvents",
"AppLayerDecoderEvents": "AppLayerDecoderEvents",
"core::AppLayerEventType": "AppLayerEventType",
"AppLayerEventType": "AppLayerEventType",
"CLuaState": "lua_State",
"Store": "Store",
}
Expand Down
Loading

0 comments on commit a306ccf

Please sign in to comment.