This file is indexed.

/usr/share/gosa/plugins/admin/sudo/options.tpl is in gosa-plugin-sudo 2.7.4+reloaded2-1+deb8u2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<h3>Used sudo role options</h3>

<table style="width:650px;" summary="{t}Sudo options{/t}">
 <tr>
  <td style="width: 140px;"><b>{t}Option name{/t}</b></td>
  <td style="width: 20px;"></td>
  <td><b>{t}Value{/t}</b></td>
  <td><b>{t}Options{/t}</b></td>
 </tr>
{foreach from=$sudoOption item=item key=key}
  {foreach from=$item item=entry key=entry_key} 
   <tr>
    <td>{$key}</td>
    <td style="width:20px;">
     {if $entry.NEGATE}
      {image path="plugins/sudo/images/negate.png"}

     {/if}
    </td>
    <td>
{render acl=$ACL}   
    {if $options[$entry.NAME].TYPE == "STRING"}
     <!-- STRING  
      -->
     <input type='text' name='option_value__{$key}_{$entry_key}' value="{$entry.VALUE}" style='width:280px;'> 
    {elseif $options[$entry.NAME].TYPE == "LISTS"}
     <!-- LISTS  
      -->
      <input type='text' value="{$entry.VALUE}" name="list_value__{$key}_{$entry_key}" style='width:280px;'>
    {elseif $options[$entry.NAME].TYPE == "INTEGER"}
     <!-- INTEGER  
      -->
     <input type='text' name='option_value__{$key}_{$entry_key}' value="{$entry.VALUE}" style='width:280px;'>
    {elseif $options[$entry.NAME].TYPE == "BOOLEAN"}
     <!-- BOOLEAN  
      -->
     <select name="option_value__{$key}_{$entry_key}" style="width:80px;" size=1>
      <option {if $entry.VALUE == "FALSE"} selected {/if}value="FALSE">FALSE</option>
      <option {if $entry.VALUE == "TRUE"} selected {/if}value="TRUE">TRUE</option>
     </select>
    {elseif $options[$entry.NAME].TYPE == "BOOL_INTEGER"}
     <!-- BOOLEAN_INTEGER 
      -->
     <select name="option_selection__{$key}_{$entry_key}" id="option_selection__{$key}_{$entry_key}"
       style="width:80px;" size=1
      onChange="toggle_bool_fields('option_selection__{$key}_{$entry_key}','option_value__{$key}_{$entry_key}');">
      <option {if $entry.VALUE == "FALSE"} selected {/if}value="FALSE">FALSE</option>
      <option {if $entry.VALUE == "TRUE"} selected {/if}value="TRUE">TRUE</option>
      <option {if $entry.VALUE != "TRUE" && $entry.VALUE != "FALSE"} selected {/if}
      value="STRING">INTEGER</option>
     </select> 
      <input type='text' value="{$entry.VALUE}" style='width:280px;' name='option_value__{$key}_{$entry_key}'
      id="option_value__{$key}_{$entry_key}"
          {if $entry.VALUE == "FALSE" ||  $entry.VALUE == "TRUE"} disabled {/if}>
    {elseif $options[$entry.NAME].TYPE == "STRING_BOOL"}
     <!-- STRING_BOOLEAN 
      -->
     <select name="option_selection__{$key}_{$entry_key}" id="option_selection__{$key}_{$entry_key}"
       style="width:80px;" size=1
      onChange="toggle_bool_fields('option_selection__{$key}_{$entry_key}','option_value__{$key}_{$entry_key}');">
      <option {if $entry.VALUE == "FALSE"} selected {/if}value="FALSE">FALSE</option>
      <option {if $entry.VALUE == "TRUE"} selected {/if}value="TRUE">TRUE</option>
      <option {if $entry.VALUE != "TRUE" && $entry.VALUE != "FALSE"} selected {/if}
      value="STRING">STRING</option>
     </select> 
     <input type='text' value="{$entry.VALUE}" style='width:280px;' name='option_value__{$key}_{$entry_key}'
      id="option_value__{$key}_{$entry_key}" 
          {if $entry.VALUE == "FALSE" ||  $entry.VALUE == "TRUE"} disabled {/if}>
    {/if}
{/render}
    </td>
    <td style='width: 40px; text-align:right;'>
{render acl=$ACL}   
     {image path="plugins/sudo/images/negate.png" action="negOption_{$key}_{$entry_key}"}

{/render}
{render acl=$ACL}   
     {image path="images/lists/trash.png" action="delOption_{$key}_{$entry_key}"}

{/render}
    </td>
   </tr>
  {/foreach}
{/foreach}
</table>

<hr>
<br>
<h3>{t}Available options{/t}:</h3>
{render acl=$ACL}   
<select name='option' size=1>
{foreach from=$options item=item key=key}
 {if !isset($sudoOption.$key) || ($sudoOption.$key && $item.TYPE == "LISTS")}
 <option value='{$key}'>{$item.NAME} ({$map[$item.TYPE]})</option>
 {/if}
{/foreach}
</select>
{/render}

{render acl=$ACL}   
<button type='submit' name='add_option'>{msgPool type=addButton}</button>

{/render}

<script language="JavaScript" type="text/javascript">
 <!-- 
  {literal}
  function toggle_bool_fields(source_select,target_input)
  {
   var select= document.getElementById(source_select); 
   var input = document.getElementById(target_input); 
   if(select.value == "TRUE" || select.value == "FALSE"){
    input.disabled = true;
    input.value = select.value;
   }else{
    input.disabled = false;
    input.value = "";
   }
  }
  {/literal}
 -->
</script>