-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
selinux-testsuite: Enhance inet_socket tests
Enhance the tests as follows: 1) Determine number of tests to run with current config. 2) Add CALIPSO STREAM tests (DGRAM not supported in kernel. See [1]). 3) Add support for CIPSO TAGS 1 & 2. Closes [2]. 4) Run scripts using /bin/sh. 5) Shorten sleep time as more tests. [1] SELinuxProject/selinux-kernel#24 [2] #1 Signed-off-by: Richard Haines <[email protected]> [PM: adjusted file permissions on tests/inet_socket/test ] Signed-off-by: Paul Moore <[email protected]>
- Loading branch information
Showing
14 changed files
with
310 additions
and
88 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,5 @@ | ||
#!/bin/sh | ||
# Reset NetLabel configuration to unlabeled after CALIPSO/IPv6 tests. | ||
netlabelctl map del default | ||
netlabelctl calipso del doi:16 | ||
netlabelctl map add default protocol:unlbl |
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 @@ | ||
#!/bin/sh | ||
# Define a doi for testing loopback for CALIPSO/IPv6. | ||
netlabelctl calipso add pass doi:16 | ||
netlabelctl map del default | ||
netlabelctl map add default address:0.0.0.0/0 protocol:unlbl | ||
netlabelctl map add default address:::/0 protocol:unlbl | ||
netlabelctl map add default address:::1 protocol:calipso,16 |
Empty file.
Empty file.
Empty file.
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,11 @@ | ||
#!/bin/sh | ||
# Based on http://paulmoore.livejournal.com/7234.html. | ||
# | ||
# Modifications: | ||
# - Defined a doi for testing loopback for CIPSOv4. | ||
|
||
netlabelctl cipsov4 add pass doi:16 tags:1 | ||
netlabelctl map del default | ||
netlabelctl map add default address:0.0.0.0/0 protocol:unlbl | ||
netlabelctl map add default address:::/0 protocol:unlbl | ||
netlabelctl map add default address:127.0.0.1 protocol:cipsov4,16 |
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,11 @@ | ||
#!/bin/sh | ||
# Based on http://paulmoore.livejournal.com/7234.html. | ||
# | ||
# Modifications: | ||
# - Defined a doi for testing loopback for CIPSOv4. | ||
|
||
netlabelctl cipsov4 add pass doi:16 tags:2 | ||
netlabelctl map del default | ||
netlabelctl map add default address:0.0.0.0/0 protocol:unlbl | ||
netlabelctl map add default address:::/0 protocol:unlbl | ||
netlabelctl map add default address:127.0.0.1 protocol:cipsov4,16 |
0
tests/inet_socket/cipso-load → tests/inet_socket/cipso-load-t5
100755 → 100644
File renamed without changes.
Empty file.
Empty file.
Empty file.
Empty file.
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
Oops, something went wrong.