Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable Ubuntu Pro's ua-timer.timer job; causing OSSEC alerts #6781

Merged
merged 2 commits into from
May 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions molecule/testinfra/common/test_system_hardening.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,3 +180,11 @@ def test_snapd_absent(host):
assert not host.file("/etc/apparmor.d/usr.lib.snapd.snap-confine.real").exists
assert not host.file("/usr/bin/snap").exists
assert not host.file("/var/lib/snapd/snaps").exists


def test_ubuntu_pro_disabled(host):
with host.sudo():
cmd = host.run("systemctl status esm-cache")
assert "Loaded: masked" in cmd.stdout
cmd = host.run("systemctl is-enabled ua-timer.timer")
assert cmd.stdout.strip() == "disabled"
3 changes: 3 additions & 0 deletions securedrop/debian/securedrop-config.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ case "$1" in

# Disable fwupd-refresh (#6204)
systemctl is-enabled fwupd-refresh.timer && systemctl disable fwupd-refresh.timer
# And disable Ubuntu Pro's ua-timer and esm-cache (#6773)
systemctl is-enabled ua-timer.timer && systemctl disable ua-timer.timer
systemctl mask esm-cache
cfm marked this conversation as resolved.
Show resolved Hide resolved

;;
abort-upgrade|abort-remove|abort-deconfigure)
Expand Down