Skip to content

Commit

Permalink
Ignore apparmor failures caused by ubuntu_pro_apt_news
Browse files Browse the repository at this point in the history
This is an upstream Ubuntu bug that was fixed, but occurs before
packages are updated and SecureDrop is installed, so there's really
nothing for us to do until new VM images and installer ISOs are
made available

Fixes #7385.
  • Loading branch information
legoktm committed Dec 13, 2024
1 parent c2e9876 commit 3aa19e6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions molecule/testinfra/app/test_apparmor.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,10 @@ def test_aa_no_denies_in_syslog(host):
found = []
for line in lines:
if 'apparmor="DENIED"' in line:
if 'apparmor="DENIED" operation="mknod" profile="ubuntu_pro_apt_news"' in line:
# This failure is a known bug in Ubuntu that happens before SD
# is installed and disables ubuntu-pro stuff. See
# <https://github.com/freedomofpress/securedrop/issues/7385>.
continue
found.append(line)
assert found == []

0 comments on commit 3aa19e6

Please sign in to comment.