-
Notifications
You must be signed in to change notification settings - Fork 687
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
Conversation
I've begun this test plan, and I'll update this report tomorrow:
amnesia@amnesia:~$ ssh app sudo systemctl disable ua-timer.timer
Removed /etc/systemd/system/timers.target.wants/ua-timer.timer.
amnesia@amnesia:~$ ssh mon sudo systemctl disable ua-timer.timer
Removed /etc/systemd/system/timers.target.wants/ua-timer.timer.
No concerns from me. If in release QA the |
I'm still getting the OSSEC alerts, despite the ua-timer job being stopped... :( via syslog:
So it's one of those...
Probably that? Though I can't actually figure out what's starting it. |
So we either need to override the hook or mask the units. Sigh. |
Same here. I disabled/masked the ua-timer.timer/ua-timer.service but the osssec error continued. |
Thanks @airblag - I've updated the PR to also mask |
@legoktm, I've marked this as back in progress until it's ready to review again. :-) |
*checks OSSEC notifications* Looks working as intended to me, my So ready for review @cfm :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test plan checks out!
- Manually run
sudo systemctl disable ua-timer.timer && sudo systemctl mask esm-cache
- Manually reboot your server or wait for the nightly reboot
- Wait another 24h, observe that you get no OSSEC notifications related to
failed to process /proc/version_signature
I have one question (inline) before I approve.
…lerts Ubuntu Pro's "uaclient" expects the Linux kernel package to be versioned in a specific format that we are not currently compliant with. This error message is triggering spurious OSSEC alerts. While we do plan to fix our kernel versioning scheme, we really don't need this Ubuntu Pro stuff, so let's disable it the same way we do with fwupd. Since ua-timer is started by a timer, simply disabling it is enough. But for esm-cache, it's invoked by an apt hook, so we need to mask it. Fixes #6773.
(Rebased to fix static-analysis-and-no-known-cves-1 failure) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The testinfra check added today confirms yesterday's successful manual testing. Thanks, @legoktm!
Status
Ready for review
Description of Changes
Ubuntu Pro's "uaclient" expects the Linux kernel package to be versioned in a specific format that we are not currently compliant with. This error message is triggering spurious OSSEC alerts.
While we do plan to fix our kernel versioning scheme, we really don't need this Ubuntu Pro stuff, so let's disable it the same way we do with fwupd.
Fixes #6773.
Testing
sudo systemctl disable ua-timer.timer && sudo systemctl mask esm-cache
failed to process /proc/version_signature
Note that I did not include the extensive testing plan regarding packages that #6401 had as I think we can trust that the postinst and bash conditional logic is correct since it's the same, just that disabling the timer produces the effect we want.
Deployment
Any special considerations for deployment? Not really.
Checklist