Increase IPSIZE for IPv6 compatibility.#3259
Conversation
|
Hi @aquerubin , thank you very much for your time and advice, we have to assess whether or not we should introduce this change because this may generate that throughout the Wazuh code the memory used by the system could increase greatly. In any case we will evaluate your proposal, thank you |
|
On Wed, 15 May 2019, Adrián Jesús Peña Rodríguez wrote:
thank you very much for your time and advice, we have to assess whether
or not we should introduce this change because this may generate that
throughout the Wazuh code the memory used by the system could increase
greatly.
This is just one of several prerequisite IPv6 patches that have already
been incorporated into the ossec base code. wazuh is missing a number of
IPv6 fixes when it was forked before ossec acquired the full IPv6
functionality it has now.
Attacks over IPv6 are on the rise. The downside of not incorporating the
missing IPv6 fixes is that wazuh will not be fully functional in
dual-stack or even IPv6-only environments and will be blind to certain
IPv6 based attacks and exploits.
Antonio Querubin
e-mail: tony@lavanauts.org
|
|
Hi @aquerubin, Thank you for your contribution, IPv6 compatibility is an important goal for us. We are going to include these changes into a release project and will be merged ASAP. Regards. |
|
On Mon, 20 May 2019, Chema Martínez wrote:
Thank you for your contribution, IPv6 compatibility is an important goal
for us.
We are going to include these changes into a release project and will be
merged ASAP.
Thank you. The PRs submitted so far are the low-hanging fruit of missing
IPv6 patches. The other missing patches are a significant refactoring of
the base network code. Fortunately, they're already working in OSSEC. I
hope to submit additional PRs soon as time permits.
Antonio Querubin
e-mail: tony@lavanauts.org
|
|
Hi again @aquerubin, I noticed testing the solution a bug in our code that leads to a Segmentation Fault when including your change, here you can see the valgrind report: It is caused because wazuh/src/client-agent/notify.c Line 138 in 993b782 After that, wazuh/src/client-agent/notify.c Line 142 in 993b782 This is solved by allocating the correct size for And increasing the size of wazuh/src/client-agent/notify.c Line 136 in 993b782 Sorry for the inconveniences, you can include these changes to this PRs. Otherwise, we could do it before merging it. Best regards, |
chemamartinez
left a comment
There was a problem hiding this comment.
Incompatible with
wazuh/src/client-agent/notify.c
Line 138 in 993b782
See more detailed description above.
|
Same problem corrected in win_agent.c.
Antonio Querubin
e-mail: tony@lavanauts.org
|
|
Hi @aquerubin, Thanks for the requested changes. The error disappeared so I approve the PR. Thank you again for your contributions! Best regards. |
Increase IPSIZE to the larger Socket API (RFC 3493) length for IPv6 compatibility.