<def-group>
  <definition class="compliance" id="socket_systemd-journal-remote_disabled" version="1">
    <metadata>
        <title>Disable systemd-journal-remote Socket</title>
        
    <affected family="unix">
    <platform>Ubuntu 22.04</platform>
    </affected>
        <description>Disable systemd-journal-remote.socket</description>
    </metadata>
    <criteria>
        <criterion comment="Property LoadState of systemd-journal-remote.socket is masked"
            test_ref="test_socket_loadstate_is_masked_systemd-journal-remote"/>
    </criteria>
  </definition>

  <linux:systemdunitproperty_test check="all" check_existence="any_exist"
      comment="Test that the property LoadState from the systemd-journal-remote.socket is masked"
      id="test_socket_loadstate_is_masked_systemd-journal-remote" version="1">
    <linux:object object_ref="obj_socket_loadstate_is_masked_systemd-journal-remote"/>
    <linux:state state_ref="state_socket_loadstate_is_masked_systemd-journal-remote"/>
  </linux:systemdunitproperty_test>

  <linux:systemdunitproperty_object comment="Retrieve the LoadState property of systemd-journal-remote.socket"
      id="obj_socket_loadstate_is_masked_systemd-journal-remote" version="1">
    <linux:unit operation="pattern match">^systemd-journal-remote.socket$</linux:unit>
    <linux:property>LoadState</linux:property>
  </linux:systemdunitproperty_object>

  <linux:systemdunitproperty_state comment="LoadState is set to masked"
      id="state_socket_loadstate_is_masked_systemd-journal-remote" version="1">
    <linux:value>masked</linux:value>
  </linux:systemdunitproperty_state>
</def-group>