Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 587786 - =net-analyzer/suricata-3.1 - can't set response-body-decompress-layer-limit to 2, libhtp version too old
Summary: =net-analyzer/suricata-3.1 - can't set response-body-decompress-layer-limit t...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sławek Lis (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-02 09:40 UTC by Mikhail Kurinnoi
Modified: 2016-10-12 09:50 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail Kurinnoi 2016-07-02 09:40:40 UTC
I have updated to net-analyzer/suricata-3.1 from previous version 3.0.1 and have net-libs/libhtp-0.5.18 installed (as I see, latest upstream version is 0.5.20). Here is the suricata start log I have now:

...
Jul  2 12:16:37 totoro suricata[2587]: 2/7/2016 -- 12:16:37 - <Notice> - This is Suricata version 3.1 RELEASE
Jul  2 12:16:37 totoro suricata[2587]: 2/7/2016 -- 12:16:37 - <Info> - CPUs/cores online: 4
Jul  2 12:16:37 totoro suricata[2587]: 2/7/2016 -- 12:16:37 - <Warning> - [ERRCODE: SC_WARN_OUTDATED_LIBHTP(202)] - can't set response-body-decompress-layer-limit to 2, libhtp version too old
Jul  2 12:16:37 totoro suricata[2587]: 2/7/2016 -- 12:16:37 - <Info> - NFQ running in standard ACCEPT/DROP mode
Jul  2 12:16:37 totoro suricata[2588]: 2/7/2016 -- 12:16:37 - <Info> - Loading rule file: /etc/suricata/rules/local.rules
...
Jul  2 12:16:43 totoro suricata[2588]: 2/7/2016 -- 12:16:43 - <Info> - Loading rule file: /etc/suricata/rules/app-layer-events.rules
Jul  2 12:16:43 totoro suricata[2588]: 2/7/2016 -- 12:16:43 - <Info> - 48 rule files processed. 17537 rules successfully loaded, 0 rules failed
Jul  2 12:16:44 totoro suricata[2588]: 2/7/2016 -- 12:16:44 - <Info> - 17545 signatures processed. 447 are IP-only rules, 5912 are inspecting packet payload, 13457 inspect application layer, 76 are decoder event only
Jul  2 12:16:45 totoro suricata[2588]: 2/7/2016 -- 12:16:45 - <Info> - Threshold config parsed: 0 rule(s) found
Jul  2 12:16:45 totoro suricata[2588]: 2/7/2016 -- 12:16:45 - <Info> - dropped the caps for main thread
Jul  2 12:16:45 totoro suricata[2588]: 2/7/2016 -- 12:16:45 - <Info> - Syslog output initialized
Jul  2 12:16:45 totoro suricata[2588]: 2/7/2016 -- 12:16:45 - <Info> - binding this thread 0 to queue '1'
Jul  2 12:16:45 totoro suricata[2588]: 2/7/2016 -- 12:16:45 - <Info> - setting queue length to 4096
Jul  2 12:16:45 totoro suricata[2588]: 2/7/2016 -- 12:16:45 - <Info> - setting nfnl bufsize to 6144000
Jul  2 12:16:45 totoro suricata[2588]: 2/7/2016 -- 12:16:45 - <Notice> - all 6 packet processing threads, 2 management threads initialized, engine started.
...

I am just worry about "[ERRCODE: SC_WARN_OUTDATED_LIBHTP(202)]" line, looks like net-analyzer/suricata-3.1 need libhtp-0.5.19 or libhtp-0.5.20 (that not in portage at all) in order to function proper. For now, even if I set response-body-decompress-layer-limit in suricata config to 0 - disable - I still have this error message in log.

Reproducible: Always
Comment 1 Adam Feldman gentoo-dev 2016-07-06 07:24:14 UTC
The configure.ac says >=libhtp-0.5.5.  They bundle 0.5.20.  Might be worth filing an upstream bug to see if they think that they should update the configure.ac https://redmine.openinfosecfoundation.org/projects/suricata/issues?set_filter=1&tracker_id=1
Comment 2 Mikhail Kurinnoi 2016-07-06 08:22:43 UTC
https://redmine.openinfosecfoundation.org/issues/1839
Comment 3 Vladimir Datsevich 2016-10-03 10:36:57 UTC
This is fixed by upstream in 3.1.1.
Comment 4 Vladimir Datsevich 2016-10-08 10:12:54 UTC
See https://bugs.gentoo.org/show_bug.cgi?id=595524
Comment 5 Sławek Lis (RETIRED) gentoo-dev 2016-10-08 18:48:35 UTC
Latest suricata needs libhtp-0.5.20, so we've to wait for that version in portage. After that I'll push suricata update. 
Thank you
Comment 6 Sławek Lis (RETIRED) gentoo-dev 2016-10-12 09:50:48 UTC
Latest suricata pushed into the tree.