<def-group>
  <definition class="compliance" id="configure_tmux_lock_command" version="1">
    {{{ oval_metadata("Check if the vlock command is configured to be used as a locking mechanism in tmux.") }}}
    <criteria comment="Configure the tmux Lock Command" operator="AND">
      <criterion comment="check lock-command is set to vlock in /etc/tmux.conf"
        test_ref="test_configure_tmux_lock_command" />
      <extend_definition comment="Check /etc/tmux.conf is readable by others" definition_ref="tmux_conf_readable_by_others" />
    </criteria>
  </definition>
  <ind:textfilecontent54_test check="all" check_existence="all_exist"
  comment="check lock-command is set to vlock in /etc/tmux.conf"
  id="test_configure_tmux_lock_command" version="1">
    <ind:object object_ref="obj_configure_tmux_lock_command" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="obj_configure_tmux_lock_command" version="1">
    <ind:filepath>/etc/tmux.conf</ind:filepath>
    <ind:pattern operation="pattern match">^\s*set\s+-g\s+lock-command\s+vlock\s*(?:#.*)?$</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>
</def-group>
