This file contains tests on SElinux
Bases: object
Returns current enforcing mode of SELinux
Returns: | SElinux enforcing status |
---|---|
Return type: | str |
Returns current enforcing mode of SELinux from config file
Returns: | SElinux enforcing status |
---|---|
Return type: | str |
Detects whether is SElinux enabled or not
Returns: | SElinux status |
---|---|
Return type: | bool |
Returns current SELINUX type/mode from config file
Returns: | SElinux type |
---|---|
Return type: | str |
This method saves the original enforcing mode for later restoring
Tests whether is SElinux enabled.
Parameters: | enabled (bool) – Whether is Selinux enabled or not |
---|---|
Raises : | AssertionError |
Verifies whether SELinux is in ‘Enforcing’ state.
Parameters: | getenforce (str) – Current enforcing status |
---|---|
Raises : | AssertionError |
Flips SElinux into Enforcing mode. Checks if SElinux is in Enforcing mode.
Parameters: | selinux_getenforce (str) – Current enforcing status |
---|---|
Raises : | AssertionError |
Verifies whether SELinux is in ‘Enforcing’ state. Checks from config file
Parameters: | getenforce_conf (str) – Current enforcing status |
---|---|
Raises : | AssertionError |