<def-group>
  <definition class="compliance" id="{{{ rule_id }}}" version="1">
    {{{ oval_metadata("Check if the lock-session command is bound to a key.") }}}
    <criteria comment="Configure binding for the tmux Lock Session command" operator="AND">
      <criterion comment="check lock-session is bound to a key"
        test_ref="test_{{{ rule_id }}}" />
      <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-sessin is bound to a key in /etc/tmux.conf"
  id="test_{{{ rule_id }}}" version="1">
    <ind:object object_ref="obj_{{{ rule_id }}}" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="obj_{{{ rule_id }}}" version="1">
    <ind:filepath>/etc/tmux.conf</ind:filepath>
    <ind:pattern operation="pattern match">^\s*bind\s+[a-zA-Z]\s+lock-session(?:#.*)?$</ind:pattern>
    <ind:instance operation="greater than or equal" datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>
</def-group>
