Project

General

Profile

Actions

Bug #4554

closed
JL JL

Configuration test mode succeeds when classification.config file contains invalid content

Bug #4554: Configuration test mode succeeds when classification.config file contains invalid content

Added by Jeff Lucovsky almost 5 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

lucovsky@ ~/src/jal/suricata (master) $ echo "this is invalid" > classification.config
jlucovsky@ ~/src/jal/suricata (master) $ suricata -T -c suricata.yaml -S ~/rules/be.rule
[279217] 3/7/2021 -- 08:26:22 - (suricata.c:1615) <Info> (ParseCommandLine) -- Running suricata under test mode
[279217] 3/7/2021 -- 08:26:22 - (suricata.c:1059) <Notice> (LogVersion) -- This is Suricata version 7.0.0-dev (fb6246b26 2021-06-02) running in SYSTEM mode
[279217] 3/7/2021 -- 08:26:23 - (util-classification-config.c:260) <Error> (SCClassConfAddClasstype) -- [ERRCODE: SC_ERR_INVALID_SIGNATURE(39)] - Invalid Classtype in classification.config file
[279217] 3/7/2021 -- 08:26:23 - (suricata.c:2782) <Notice> (SuricataMain) -- Configuration provided was successfully loaded. Exiting.
jlucovsky@ ~/src/jal/suricata (master) $ echo $?
0

The expected behavior is a return code of 1


Related issues 2 (0 open2 closed)

Related to Suricata - Bug #4553: Configuration test mode succeeds when reference.config file contains invalid contentClosedOISF DevActions
Related to Suricata - Bug #4369: Configuration test mode succeeds when threshold.config file contains invalid contentClosedJeff LucovskyActions

JL Updated by Jeff Lucovsky almost 5 years ago Actions #1

  • Related to Bug #4553: Configuration test mode succeeds when reference.config file contains invalid content added

JL Updated by Jeff Lucovsky almost 5 years ago Actions #2

  • Subject changed from Configuration test mode succeeds when reference.config file contains invalid content to Configuration test mode succeeds when classification.config file contains invalid content

JL Updated by Jeff Lucovsky almost 5 years ago Actions #3

  • Related to Bug #4369: Configuration test mode succeeds when threshold.config file contains invalid content added

JL Updated by Jeff Lucovsky about 4 years ago Actions #4

  • Status changed from New to In Review
  • Assignee set to Jeff Lucovsky
  • Target version set to 7.0.0-beta1

VJ Updated by Victor Julien over 3 years ago Actions #5

  • Target version changed from 7.0.0-beta1 to 7.0.0-rc1

JL Updated by Jeff Lucovsky over 3 years ago Actions #6

  • Status changed from In Review to Closed
Actions

Also available in: PDF Atom