forked from OISF/suricata-verify
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests include: - non-existent user - NULL user (empty user string)
- Loading branch information
1 parent
ca20b9f
commit b592bfc
Showing
6 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Test Description | ||
|
||
Test to make sure Suricata handles well non-existent user as an input | ||
in the user field. | ||
|
||
## Related Issue | ||
|
||
https://redmine.openinfosecfoundation.org/issues/6278 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
%YAML 1.1 | ||
--- | ||
|
||
run-as: | ||
user: totally-not-existing-user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
requires: | ||
min-version: 6 | ||
|
||
pcap: false | ||
exit-code: 1 | ||
args: | ||
- --engine-analysis | ||
|
||
checks: | ||
- shell: | ||
args: grep -c 'unable to get the user ID, check if user exist!!' stderr | ||
expect: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Test Description | ||
|
||
Test to make sure Suricata handles well null input in the user field. | ||
|
||
## Related Issue | ||
|
||
https://redmine.openinfosecfoundation.org/issues/6278 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
%YAML 1.1 | ||
--- | ||
|
||
run-as: | ||
user: # null user | ||
group: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
requires: | ||
min-version: 6 | ||
|
||
pcap: false | ||
exit-code: 1 | ||
args: | ||
- --engine-analysis | ||
|
||
checks: | ||
- shell: | ||
args: grep -c 'no user name was provided - ensure it is specified either in the configuration file (run-as.user) or in command-line arguments (--user)' stderr | ||
expect: 1 | ||
min-version: 7 | ||
- shell: | ||
args: grep -c 'unable to get the user ID, check if user exist!!' stderr | ||
expect: 1 | ||
version: 6 |