<div dir="ltr">Not much testing is done. I just got it to compile, that's why my first question was is there any reason to hardcode to lua 5.1 :)<div>But even if it works only with a specific version it's easier to use the proposed patch as you just have to specify min and too high versions and autodetect lua parameters.</div><div>e.g. <span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre">AX_PROG_LUA(5.1, 5.3) will allow use of v5.1 and v5.2.</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 20, 2015 at 11:37 AM, Victor Julien <span dir="ltr"><<a href="mailto:lists@inliniac.net" target="_blank">lists@inliniac.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 01/20/2015 10:03 AM, Stefan Lambrev wrote:<br>
> I see that Lua version (not luajit) is hardcoded to v5.1.<br>
> Is there a reason for this? I have experimented little<br>
<br>
</span>We started with luajit which is based on lua 5.1 AFAIK. So when adding<br>
regular lua support I only tested lua 5.1.<br>
<span class=""><br>
> with <a href="http://www.gnu.org/software/autoconf-archive/ax_lua.html" target="_blank">http://www.gnu.org/software/autoconf-archive/ax_lua.html</a><br>
> and at least on FreeBSD suricata autotools do not have a problem to find<br>
> "default" Lua installed (5.2 in my case).<br>
<br>
</span>Interesting, I thought there were some differences between 5.1 and 5.2,<br>
but perhaps none of them are relevant to us.<br>
<span class=""><br>
> Here are the patches I do apply to achieve this:<br>
><br>
> <a href="https://github.com/cheffo/FreeBSD-Ports/blob/master/security/suricata/files/patch-aclocal.m4" target="_blank">https://github.com/cheffo/FreeBSD-Ports/blob/master/security/suricata/files/patch-aclocal.m4</a><br>
> <a href="https://github.com/cheffo/FreeBSD-Ports/blob/master/security/suricata/files/patch-configure.ac" target="_blank">https://github.com/cheffo/FreeBSD-Ports/blob/master/security/suricata/files/patch-configure.ac</a><br>
> <a href="https://github.com/cheffo/FreeBSD-Ports/blob/master/security/suricata/files/patch-m4_ax_lua.m4" target="_blank">https://github.com/cheffo/FreeBSD-Ports/blob/master/security/suricata/files/patch-m4_ax_lua.m4</a><br>
><br>
> P.S. I did this only on FreeBSD but with small additions in <a href="http://configure.ac" target="_blank">configure.ac</a><br>
</span>> <<a href="http://configure.ac" target="_blank">http://configure.ac</a>> I guess it will work for other operating systems too?<br>
<br>
How much testing have you done? By default the lua support doesn't do<br>
anything, you'll have to enable scripts to use it.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
---------------------------------------------<br>
Victor Julien<br>
<a href="http://www.inliniac.net/" target="_blank">http://www.inliniac.net/</a><br>
PGP: <a href="http://www.inliniac.net/victorjulien.asc" target="_blank">http://www.inliniac.net/victorjulien.asc</a><br>
---------------------------------------------<br>
<br>
_______________________________________________<br>
Suricata IDS Users mailing list: <a href="mailto:oisf-users@openinfosecfoundation.org">oisf-users@openinfosecfoundation.org</a><br>
Site: <a href="http://suricata-ids.org" target="_blank">http://suricata-ids.org</a> | Support: <a href="http://suricata-ids.org/support/" target="_blank">http://suricata-ids.org/support/</a><br>
List: <a href="https://lists.openinfosecfoundation.org/mailman/listinfo/oisf-users" target="_blank">https://lists.openinfosecfoundation.org/mailman/listinfo/oisf-users</a><br>
Training now available: <a href="http://suricata-ids.org/training/" target="_blank">http://suricata-ids.org/training/</a><br>
</font></span></blockquote></div><br></div>