summaryrefslogtreecommitdiff
path: root/debian/sudo-smf.xml
blob: df93dcd5da6eda3ca30d3f3c9844dedbd65bf251 (plain)
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
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/xml/schema/smf/service_bundle.dtd.1">
<service_bundle type="manifest" name="sudo">
  <service name="system/sudo" type="service" version="1">
    <dependency name="filesystem" grouping="require_all" restart_on="error" type="service">
      <service_fmri value="svc:/system/filesystem/local"/>
    </dependency>
    <instance name="default" enabled="true">
      <exec_method type="method" name="start" exec="find /var/lib/sudo -exec touch -d @0 '{}' \;" timeout_seconds="10"/>
      <exec_method type="method" name="stop" exec=":true" timeout_seconds="10"/>
      <property_group name="startd" type="framework">
        <propval name="duration" type="astring" value="transient"/>
        <propval name="ignore_error" type="astring" value="core,signal"/>
      </property_group>
    </instance>
    <stability value="Evolving"/>
    <template>
      <common_name>
        <loctext xml:lang="C">Make sure sudo privileges don't persist across reboots</loctext>
      </common_name>
      <documentation>
        <manpage title="sudo" section="1"/>
      </documentation>
    </template>
  </service>
</service_bundle>