Project

General

Profile

Actions

Bug #2691

open
SB OD

Error thrown with -o option

Bug #2691: Error thrown with -o option

Added by Shivani Bhardwaj over 7 years ago. Updated about 1 year ago.

Status:
Assigned
Priority:
Low
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

If a directory is not owned or managed by suricata-update, it throws an error. This happens because following the usual procedure in order to see if there has been any change in the rule files in a given directory, it tries to hash all the contents of the directory and match against that.

Steps to reproduce

./bin/suricata-update  -o /tmp

Actual output

Attached


Files

output.txt (16.4 KB) output.txt Shivani Bhardwaj, 11/20/2018 04:01 PM

Related issues 1 (0 open1 closed)

Blocked by Suricata-Update - Bug #2688: filemd5 files are not migrated /w rulesClosedShivani BhardwajActions

SB Updated by Shivani Bhardwaj about 7 years ago Actions #1

  • Status changed from New to Assigned
  • Assignee changed from Jason Ish to Shivani Bhardwaj
  • Target version set to TBD

SB Updated by Shivani Bhardwaj almost 7 years ago Actions #2

  • Status changed from Assigned to Feedback

JI Updated by Jason Ish over 6 years ago Actions #3

This isn't something we see coming up in generate usage of Suricata-Update so I'm not sure about the priority. Plus, needing to move in files for datasets, and md5's (https://redmine.openinfosecfoundation.org/issues/2688) are going to complicate things.

I wonder if the answer is to drop a cookie. When running, if the output directory does not exist, create it, and drop a cookie file (.suricata-update). If its empty, drop the cookie file. Otherwise check if the cookie exists, and refuse to run if not with a meaningful error message.

SB Updated by Shivani Bhardwaj over 6 years ago Actions #4

I wonder if the answer is to drop a cookie. When running, if the output directory does not exist, create it, and drop a cookie file (.suricata-update). If its empty, drop the cookie file. Otherwise check if the cookie exists, and refuse to run if not with a meaningful error message.

This makes sense. Should this work be carried on or dropped or halted till #2688 is addressed?

JI Updated by Jason Ish over 6 years ago Actions #5

Shivani Bhardwaj wrote:

I wonder if the answer is to drop a cookie. When running, if the output directory does not exist, create it, and drop a cookie file (.suricata-update). If its empty, drop the cookie file. Otherwise check if the cookie exists, and refuse to run if not with a meaningful error message.

This makes sense. Should this work be carried on or dropped or halted till #2688 is addressed?

Lets hold off until #2688 is addressed.

JI Updated by Jason Ish over 6 years ago Actions #6

  • Blocked by Bug #2688: filemd5 files are not migrated /w rules added

SB Updated by Shivani Bhardwaj about 6 years ago Actions #7

  • Status changed from Feedback to Assigned

JI Updated by Jason Ish over 4 years ago Actions #8

  • Priority changed from Normal to Low

SB Updated by Shivani Bhardwaj about 1 year ago Actions #9

  • Assignee changed from Shivani Bhardwaj to OISF Dev
Actions

Also available in: PDF Atom