brimdata / build-suricata

Build Suricata for packaging with Brim
8 stars 2 forks source link

Make suricata helpers userdir-aware #29

Closed henridf closed 4 years ago

henridf commented 4 years ago

This PR changes the Suricata helpers to take into consideration a BRIM_SURICATA_USER_DIR environment variable. If present, the helpers use that dir to write suricata config and rules. Otherwise, the helpers continue to use the existing installation directory as previously.

This is motivated by Linux system wide installs where the install dir is non-writable.

For consistency I'll do this for Windows, but likely in a follow-on PR.

The issue tracking this is https://github.com/brimsec/brim/1216