Skip to content

Commit 9309456

Browse files
authored
Merge pull request #5188 from freedomofpress/5111-kernels-4.14.175
Update grsecurity kernels to 4.14.175
2 parents 8576e0b + 12bdfc9 commit 9309456

File tree

5 files changed

+20
-18
lines changed

5 files changed

+20
-18
lines changed

install_files/ansible-base/group_vars/all/securedrop

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ enable_ssh_over_tor: true
3838
# the many roles of the current prod playbook
3939
securedrop_cond_reboot_file: /tmp/sd-reboot-now
4040

41-
# If you bump this, also remember to bump in molecule/builder/tests/vars.yml
41+
# If you bump this, also remember to bump in molecule/builder-xenial/tests/vars.yml
4242
securedrop_pkg_grsec:
43-
ver: "4.14.154"
44-
depends: "linux-image-4.14.154-grsec-securedrop,linux-image-4.4.182-grsec,linux-firmware-image-4.4.182-grsec,intel-microcode"
43+
ver: "4.14.175"
44+
depends: "linux-image-4.14.175-grsec-securedrop,linux-image-4.14.154-grsec-securedrop,intel-microcode"

molecule/builder-xenial/tests/vars.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ securedrop_version: "1.3.0~rc1"
33
ossec_version: "3.0.0"
44
keyring_version: "0.1.3"
55
config_version: "0.1.3"
6-
grsec_version: "4.14.154"
6+
grsec_version: "4.14.175"
77

88
# These values will be interpolated with values populated above
99
# via helper functions in the tests.

molecule/testinfra/staging/common/test_grsecurity.py

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -185,12 +185,12 @@ def test_wireless_disabled_in_kernel_config(host, kernel_opts):
185185
remove wireless support from the kernel. Let's make sure wireless is
186186
disabled in the running kernel config!
187187
"""
188+
with host.sudo():
189+
kernel_config_path = "/boot/config-{}-grsec-securedrop".format(KERNEL_VERSION)
190+
kernel_config = host.file(kernel_config_path).content_string
188191

189-
kernel_config_path = "/boot/config-{}-grsec-securedrop".format(KERNEL_VERSION)
190-
kernel_config = host.file(kernel_config_path).content_string
191-
192-
line = "# CONFIG_{} is not set".format(kernel_opts)
193-
assert line in kernel_config
192+
line = "# CONFIG_{} is not set".format(kernel_opts)
193+
assert line in kernel_config
194194

195195

196196
@pytest.mark.parametrize('kernel_opts', [
@@ -203,11 +203,12 @@ def test_kernel_options_enabled_config(host, kernel_opts):
203203
Tests kernel config for options that should be enabled
204204
"""
205205

206-
kernel_config_path = "/boot/config-{}-grsec-securedrop".format(KERNEL_VERSION)
207-
kernel_config = host.file(kernel_config_path).content_string
206+
with host.sudo():
207+
kernel_config_path = "/boot/config-{}-grsec-securedrop".format(KERNEL_VERSION)
208+
kernel_config = host.file(kernel_config_path).content_string
208209

209-
line = "{}=y".format(kernel_opts)
210-
assert line in kernel_config
210+
line = "{}=y".format(kernel_opts)
211+
assert line in kernel_config
211212

212213

213214
def test_mds_mitigations_and_smt_disabled(host):
@@ -216,7 +217,8 @@ def test_mds_mitigations_and_smt_disabled(host):
216217
see https://www.kernel.org/doc/html/latest/admin-guide/hw-vuln/mds.html
217218
"""
218219

219-
grub_config_path = "/boot/grub/grub.cfg"
220-
grub_config = host.file(grub_config_path)
220+
with host.sudo():
221+
grub_config_path = "/boot/grub/grub.cfg"
222+
grub_config = host.file(grub_config_path)
221223

222-
assert grub_config.contains("mds=full,nosmt")
224+
assert grub_config.contains("mds=full,nosmt")

molecule/testinfra/staging/vars/staging.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,4 +195,4 @@ log_events_with_ossec_alerts:
195195
rule_id: "400700"
196196

197197
fpf_apt_repo_url: "https://apt-test.freedom.press"
198-
grsec_version: "4.14.154"
198+
grsec_version: "4.14.175"

securedrop/dockerfiles/xenial/python3/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ RUN curl -LO https://ftp.mozilla.org/pub/firefox/releases/${FF_ESR_VER}/linux-x8
2929

3030
COPY ./tor_project_public.pub /opt/
3131

32-
ENV TBB_VERSION 9.0.7
32+
ENV TBB_VERSION 9.0.9
3333
RUN gpg --import /opt/tor_project_public.pub && \
3434
wget https://www.torproject.org/dist/torbrowser/${TBB_VERSION}/tor-browser-linux64-${TBB_VERSION}_en-US.tar.xz && \
3535
wget https://www.torproject.org/dist/torbrowser/${TBB_VERSION}/tor-browser-linux64-${TBB_VERSION}_en-US.tar.xz.asc && \

0 commit comments

Comments
 (0)