<def-group>
  <definition class="compliance" id="firefox_preferences-addons_plugin_updates"  version="1">
    <metadata>
      <title>Disable Addons Plugin Updates</title>
      <affected family="unix">
        <platform>Mozilla Firefox</platform>
      </affected>
      <description>Firefox automatically updates installed
      add-ons and plugins.</description>
     </metadata>
     <criteria>
       <criterion comment="addons plugin updates configured" test_ref="test_firefox_preferences-addons_plugin_updates" />
     </criteria>
  </definition>

  <ind:textfilecontent54_test check="all" comment="Check for addons plugin updates" id="test_firefox_preferences-addons_plugin_updates" version="1">
    <ind:object object_ref="object_firefox_preferences-addons_plugin_updates" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="object_firefox_preferences-addons_plugin_updates" version="1">
    <ind:path operation="pattern match">^\/usr\/(|local\/)lib(|64)\/firefox</ind:path>
    <ind:filename operation="pattern match">^.*\.cfg$</ind:filename>
    <ind:pattern operation="pattern match">^lockPref\("extensions.update.enabled",[\s]+false\);$</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object> 
</def-group>
