File: usbguard_rules_not_empty_not_missing.xml

package info (click to toggle)
scap-security-guide 0.1.79-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 114,704 kB
  • sloc: xml: 244,677; sh: 84,647; python: 33,203; makefile: 27
file content (24 lines) | stat: -rw-r--r-- 1,539 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<def-group>
  <definition class="compliance" id="usbguard_rules_not_empty_not_missing" version="1">
    <metadata>
      <title>Check that file storing USBGuard rules exists and is not empty</title>
      <affected family="unix">
        <platform>multi_platform_all</platform>
      </affected>
      <description>Check that file storing USBGuard rules at /etc/usbguard/rules.conf exists and is not empty</description>
    </metadata>
    <criteria comment="Check that file storing USBGuard rules exists and is not empty" operator="AND">
        <criterion comment="Check that the usbguard rules in either /etc/usbguard/rules.conf or /etc/usbguard/rules.d/ contain at least one non white space character." test_ref="test_usbguard_rules_nonempty" />
    </criteria>
  </definition>
  <ind:textfilecontent54_test check_existence="at_least_one_exists" check="all"
    comment="Check the usbguard rules in either /etc/usbguard/rules.conf or /etc/usbguard/rules.d/ contain at least one non whitespace character and exists"
    id="test_usbguard_rules_nonempty" version="1">
    <ind:object object_ref="obj_usbguard_rules_nonempty" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="obj_usbguard_rules_nonempty" version="1">
    <ind:filepath operation="pattern match">^/etc/usbguard/(rules|rules\.d/.*)\.conf$</ind:filepath>
    <ind:pattern operation="pattern match">^.*\S+.*$</ind:pattern>
    <ind:instance datatype="int" operation="greater than or equal">1</ind:instance>
  </ind:textfilecontent54_object>
</def-group>