-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Smb log configurable 7620 v1.1 #12795
Smb log configurable 7620 v1.1 #12795
Conversation
Will allow rust to list the values of an array such as dns.types for outputs
suricata.yaml output section for smb now parses a types list and will restrict logging of transactions to these types. By default, everything still gets logged Remove unused rs_smb_log_json_request on the way Ticket: 7620
@@ -101,6 +105,42 @@ impl ConfNode { | |||
return Self { conf } | |||
} | |||
|
|||
pub fn get_child_node(&self, key: &str) -> Option<ConfNode> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jasonish thoughts about this commit ? (wrt to bindgen)
It looks to me that we do not want to have C struct ConfNode
exported to rust, but instead just have an opaque pointer and some rust-style functions to handle it, so I went this way
@@ -1143,6 +1143,21 @@ SMB Fields | |||
* "response.native_os" (string): SMB1 native OS string | |||
* "response.native_lm" (string): SMB1 native Lan Manager string | |||
|
|||
One can restrict which transactions are logged by using the "types" field in the | |||
suricata.yaml file. If this field is not specified, all transactions types are logged. | |||
9 values can be specified with this field as shown below: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: ten
if let Some(f) = get_smb_log_type_from_str(nodeu.value()) { | ||
r |= f; | ||
} else { | ||
SCLogWarning!("unknown type for smb logging: {}", nodeu.value()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By the way, this should be done for DNS (warn when an unknown type is configured)
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #12795 +/- ##
==========================================
+ Coverage 80.85% 80.86% +0.01%
==========================================
Files 936 936
Lines 259870 259982 +112
==========================================
+ Hits 210120 210240 +120
+ Misses 49750 49742 -8
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
ERROR: ERROR: QA failed on ASAN_TLPR1_suri. Pipeline 25268 |
Leak fixed in #12797 |
Link to ticket: https://redmine.openinfosecfoundation.org/issues/
https://redmine.openinfosecfoundation.org/issues/7620
Describe changes:
SV_BRANCH=OISF/suricata-verify#2352