Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Update suricata to 2.0.8 #39680

Closed
wants to merge 3 commits into from
Closed

Update suricata to 2.0.8 #39680

wants to merge 3 commits into from

Conversation

barn
Copy link
Contributor

@barn barn commented May 12, 2015

Security updates in Suricata. CVE-2015-0971 DER parser used to decode
SSL/TLS certificates has heap overflow and can cause crash.

Security updates in Suricata. CVE-2015-0971 DER parser used to decode
SSL/TLS certificates has heap overflow and can cause crash.
@barn
Copy link
Contributor Author

barn commented May 15, 2015

Not sure why that build failed. Testing it on a Mavericks VM works fine:

Syncopate-Mac:~ vagrant$ brew install https://raw.githubusercontent.com/barn/homebrew/master/Library/Formula/suricata.rb
######################################################################## 100.0%
==> Installing dependencies for suricata: libmagic, libnet, libyaml, pcre
==> Installing suricata dependency: libmagic
==> Downloading https://homebrew.bintray.com/bottles/libmagic-5.22_1.mavericks.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libmagic-5.22_1.mavericks.bottle.tar.gz
🍺  /usr/local/Cellar/libmagic/5.22_1: 272 files, 4.7M
==> Installing suricata dependency: libnet
==> Downloading https://homebrew.bintray.com/bottles/libnet-1.1.6.mavericks.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring libnet-1.1.6.mavericks.bottle.1.tar.gz
🍺  /usr/local/Cellar/libnet/1.1.6: 15 files, 576K
==> Installing suricata dependency: libyaml
==> Downloading https://homebrew.bintray.com/bottles/libyaml-0.1.6_1.mavericks.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libyaml-0.1.6_1.mavericks.bottle.tar.gz
🍺  /usr/local/Cellar/libyaml/0.1.6_1: 7 files, 352K
==> Installing suricata dependency: pcre
==> Downloading https://homebrew.bintray.com/bottles/pcre-8.37.mavericks.bottle.tar.gz
######################################################################## 100.0%
==> Pouring pcre-8.37.mavericks.bottle.tar.gz
🍺  /usr/local/Cellar/pcre/8.37: 146 files, 5.9M
==> Installing suricata
==> Downloading https://homebrew.bintray.com/bottles/suricata-2.0.8.mavericks.bottle.tar.gz

curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "suricata"
Download failed: https://homebrew.bintray.com/bottles/suricata-2.0.8.mavericks.bottle.tar.gz
Warning: Bottle installation failed: building from source.
==> Installing suricata dependency: pkg-config
==> Downloading https://homebrew.bintray.com/bottles/pkg-config-0.28.mavericks.bottle.2.tar.gz
######################################################################## 100.0%
==> Pouring pkg-config-0.28.mavericks.bottle.2.tar.gz
🍺  /usr/local/Cellar/pkg-config/0.28: 10 files, 604K
==> Downloading https://www.openinfosecfoundation.org/download/suricata-2.0.8.tar.gz
######################################################################## 100.0%
==> Downloading https://pypi.python.org/packages/source/a/argparse/argparse-1.3.0.tar.gz
######################################################################## 100.0%
==> python -c import setuptools... --no-user-cfg install --prefix=/usr/local/Cellar/suricata/2.0.8/libexec/vendor --single-version-externally-
==> Downloading https://pypi.python.org/packages/source/s/simplejson/simplejson-3.6.5.tar.gz
######################################################################## 100.0%
==> python -c import setuptools... --no-user-cfg install --prefix=/usr/local/Cellar/suricata/2.0.8/libexec/vendor --single-version-externally-
==> ./configure --disable-silent-rules --prefix=/usr/local/Cellar/suricata/2.0.8 --sysconfdir=/usr/local/etc --localstatedir=/usr/local/var --
==> make install-full
==> Caveats
Python modules have been installed and Homebrew's site-packages is not
in your Python sys.path, so you will not be able to import the modules
this formula installed. If you plan to develop with these modules,
please run:
  mkdir -p /Users/vagrant/Library/Python/2.7/lib/python/site-packages
  echo 'import site; site.addsitedir("/usr/local/lib/python2.7/site-packages")' >> /Users/vagrant/Library/Python/2.7/lib/python/site-packages/homebrew.pth
==> Summary
🍺  /usr/local/Cellar/suricata/2.0.8: 140 files, 3.2M, built in 94 seconds
Syncopate-Mac:~ vagrant$ system_profiler SPSoftwareDataType
Software:

    System Software Overview:

      System Version: OS X 10.9 (13A603)
      Kernel Version: Darwin 13.0.0
      Boot Volume: Macintosh HD
      Boot Mode: Normal
      Computer Name: Syncopate Mac
      User Name: vagrant (vagrant)
      Secure Virtual Memory: Enabled
      Time since boot: 16 minutes

@DomT4
Copy link
Member

DomT4 commented May 15, 2015

Failed on Mavericks yesterday, failed on Yosemite today. Fairly consistent signs of a race. Try adding ENV.deparallelize to the top of def install.

@DomT4
Copy link
Member

DomT4 commented May 15, 2015

Yeah, that fixed it. Can you report the probable race condition upstream and add a link to the bug report above the new ENV? It blows up pretty much right at the start of the make process:

==> make install-full
install -d "/usr/local/etc/suricata/"
install -d "/usr/local/etc/suricata/rules"
install: mkdir /usr/local/etc: File exists
make: *** [install-rules] Error 71
make: *** Waiting for unfinished jobs....

Thanks!

For the building issue with panellisation.
@xu-cheng
Copy link
Member

Thanks for the pull request! 🎉 Homebrew depends on contributions from community members like you and we're grateful for your support.

@xu-cheng xu-cheng closed this in ccd4ef7 May 16, 2015
@Homebrew Homebrew locked and limited conversation to collaborators Jul 10, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants