Skip to content

Commit

Permalink
Add regression test for CVE-2019-11135
Browse files Browse the repository at this point in the history
  • Loading branch information
emkll committed Nov 13, 2019
1 parent 6771912 commit 0efcdae
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions molecule/testinfra/staging/common/test_grsecurity.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,23 @@ def test_wireless_disabled_in_kernel_config(host, kernel_opts):
assert line in kernel_config


@pytest.mark.parametrize('kernel_opts', [
'CONFIG_x86_INTEL_TSX_MODE_OFF',
'CONFIG_PAX',
'CONFIG_GRKERNSEC',
])
def test_kernel_options_enabled_config(host, kernel_opts):
"""
Tests kernel config for options that should be enabled
"""

kernel_config_path = "/boot/config-{}-grsec-securedrop".format(KERNEL_VERSION)
kernel_config = host.file(kernel_config_path).content_string

line = "{}=y".format(kernel_opts)
assert line in kernel_config


def test_mds_mitigations_and_smt_disabled(host):
"""
Ensure that full mitigations are in place for MDS
Expand Down

0 comments on commit 0efcdae

Please sign in to comment.