Skip to content

Commit

Permalink
Merge pull request #6107 from freedomofpress/6097-silence-fwupd-ossec
Browse files Browse the repository at this point in the history
silences OSSEC alerts from `fwupd` running without `udisks2`
  • Loading branch information
kushaldas committed Sep 24, 2021
2 parents c1f4fdb + 4fea6d2 commit d447413
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,18 @@
<description>fwupd error for auto updates</description>
<options>no_email_alert</options>
</rule>
<rule id="100113" level="0">
<decoded_as>fwupd</decoded_as>
<match>The name org.freedesktop.UDisks2 was not provided by any .service files</match>
<description>fwupd error missing UDisks2</description>
<options>no_email_alert</options>
</rule>
<rule id="100114" level="0">
<decoded_as>fwupd</decoded_as>
<match>failed to get chassis type: no structure with type 03</match>
<description>fwupd error missing structure</description>
<options>no_email_alert</options>
</rule>
</group>

<!--
Expand Down
16 changes: 16 additions & 0 deletions molecule/testinfra/vars/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,22 @@ log_events_without_ossec_alerts:
level: "0"
rule_id: "100112"

- name: test_ossec_fwupd_udisks2_does_not_produce_alert
alert: >
Aug 10 14:30:51 mon fwupd[134620]: 14:30:51:0528 FuPluginLinuxSwap could
not parse /proc/swaps: failed to call
org.freedesktop.UDisks2.Manager.GetBlockDevices(): The name
org.freedesktop.UDisks2 was not provided by any .service files
level: "0"
rule_id: "100113"

- name: test_ossec_fwupd_chassis_type_does_not_produce_alert
alert: >
Sep 18 13:32:22 mon fwupd[134454]: 13:32:22:0632 FuEngine failed
to get chassis type: no structure with type 03
level: "0"
rule_id: "100114"

# Log events we expect an OSSEC alert to occur for
log_events_with_ossec_alerts:
# Check that a denied RWX mmaping would produce an OSSEC alert
Expand Down

0 comments on commit d447413

Please sign in to comment.