summaryrefslogtreecommitdiff
path: root/debian/openssh-server.smf/manifest/network/ssh.xml
blob: 2bb16fe6b9363832e99fc1ba5a256ee09e334f0f (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
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
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<service_bundle type="manifest" name="OpenSSH server">
  <service name="network/ssh" type="service" version="1">
    <instance name="default" enabled="true">
      <dependency name="fs-local" grouping="require_all" restart_on="none" type="service">
        <service_fmri value="svc:/system/filesystem/local"/>
      </dependency>
      <dependency name="net-loopback" grouping="require_all" restart_on="none" type="service">
        <service_fmri value="svc:/network/loopback"/>
      </dependency>
      <dependency name="net-physical" grouping="require_all" restart_on="none" type="service">
        <service_fmri value="svc:/network/physical"/>
      </dependency>
      <dependency name="config_data" grouping="require_all" restart_on="restart" type="path">
        <service_fmri value="file://localhost/etc/ssh/sshd_config"/>
      </dependency>
      <dependency name="fs-autofs" grouping="optional_all" restart_on="none" type="service">
        <service_fmri value="svc:/system/filesystem/autofs"/>
      </dependency>
      <dependency name="cryptosvc" grouping="optional_all" restart_on="none" type="service">
        <service_fmri value="svc:/system/cryptosvc"/>
      </dependency>
      <dependency name="network_ipfilter" grouping="optional_all" restart_on="error" type="service">
        <service_fmri value="svc:/network/ipfilter:default"/>
      </dependency>
      <dependency name="utmp" grouping="optional_all" restart_on="none" type="service">
        <service_fmri value="svc:/system/utmp"/>
      </dependency>
      <dependent name="ssh_multi-user-server" grouping="optional_all" restart_on="none">
        <service_fmri value="svc:/milestone/multi-user-server"/>
      </dependent>
      <exec_method type="method" name="start" exec="/lib/svc/method/openssh start" timeout_seconds="30"/>
      <exec_method type="method" name="stop" exec=":kill" timeout_seconds="30"/>
      <exec_method type="method" name="refresh" exec=":kill -HUP" timeout_seconds="30"/>
      <property_group name="startd" type="framework">
        <propval name="ignore_error" type="astring" value="core,signal"/>
      </property_group>
      <property_group name="package" type="framework">
        <propval name="upgrade" type="astring" value="restart"/>
      </property_group>
      <property_group name="general" type="framework">
        <propval name="action_authorization" type="astring" value="solaris.smf.manage.ssh"/>
      </property_group>
      <!-- See man svc.ipfd -->
      <property_group name="firewall_context" type="com.sun,fw_definition">
        <propval name="name" type="astring" value="ssh"/>
        <propval name="ipf_method" type="astring" value="/lib/svc/method/network-ssh ipfilter"/>
      </property_group>
      <property_group name="firewall_config" type="com.sun,fw_configuration">
        <propval name="policy" type="astring" value="use_global"/>
        <propval name="apply_to" type="astring" value=""/>
        <propval name="exceptions" type="astring" value=""/>
        <propval name="value_authorization" type="astring" value="solaris.smf.value.firewall.config"/>
      </property_group>
      <template>
        <common_name>
          <loctext xml:lang="C">
            OpenSSH server
            </loctext>
        </common_name>
        <documentation>
          <manpage title="sshd" section="8"/>
        </documentation>
      </template>
    </instance>
    <stability value="Stable"/>
  </service>
</service_bundle>