Disable fwupd-refresh.timer, triggers OSSEC warnings #6401
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Status
Ready for review
Description of Changes
For various reasons, the timer to run
fwupdmgr refresh
ocassionallytriggers OSSEC alerts, which admins can't do anything about.
We currently don't use fwupd for firmware updates, so the daily refresh
of metadata is useless and should be safe to disable. If in the future
we do want admins to install updates with fwupd, they can run refresh
manually as part of the process.
Fixes #6204.
Testing
make build-debs
to get a new securedrop-config deb packagesystemctl is-enabled fwupd-refresh.timer
prints "enabled", andsystemctl list-timers
shows it toosudo apt install ./securedrop-config[...].deb
is-enabled
command from earlier now prints "disabled"sudo apt install --reinstall ./securedrop-config[...].deb
, to run the postinst again, against an already-disabled state.is-enabled
command still prints "disabled".systemctl list-timers
Deployment
Any special considerations for deployment?
Yes, this affects the postinst of the package, which means it cannot be allowed to fail under any circumstances.
Checklist
make lint
) and tests (make test
) pass in the development container