xref: /illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/route.xml (revision 7bb0eb348e1119aed76a61d633a9106b6b9912f1)
1<?xml version="1.0"?>
2<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3<!--
4 Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
5 Use is subject to license terms.
6
7 Copyright 2016 Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
8
9 CDDL HEADER START
10
11 The contents of this file are subject to the terms of the
12 Common Development and Distribution License (the "License").
13 You may not use this file except in compliance with the License.
14
15 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
16 or http://www.opensolaris.org/os/licensing.
17 See the License for the specific language governing permissions
18 and limitations under the License.
19
20 When distributing Covered Code, include this CDDL HEADER in each
21 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
22 If applicable, add the following below this CDDL HEADER, with the
23 fields enclosed by brackets "[]" replaced with your own identifying
24 information: Portions Copyright [yyyy] [name of copyright owner]
25
26 CDDL HEADER END
27
28	NOTE:  This service manifest is not editable; its contents will
29	be overwritten by package or patch operations, including
30	operating system upgrade.  Make customizations in a different
31	file.
32-->
33
34<service_bundle type='manifest' name='SUNWroutr:route'>
35
36<service
37	name='network/routing/route'
38	type='service'
39	version='1'>
40
41	<single_instance />
42
43	<instance name='default' enabled='false' >
44
45	<!-- in.routed will not run unless routing-setup has run -->
46	<dependency
47		name='network_routing_setup'
48		grouping='require_all'
49		restart_on='refresh'
50		type='service'>
51		<service_fmri value='svc:/network/routing-setup' />
52	</dependency>
53
54	<exec_method
55		type='method'
56		name='start'
57		exec='/lib/svc/method/svc-route'
58		timeout_seconds='60'>
59		<method_context>
60			<method_credential user='root' group='root'
61privileges='basic,proc_owner,proc_fork,proc_exec,proc_info,proc_session,file_chown,sys_ip_config,net_privaddr,net_icmpaccess,net_rawaccess'/>
62		</method_context>
63	</exec_method>
64
65	<exec_method
66		type='method'
67		name='stop'
68		exec=':kill'
69		timeout_seconds='60'>
70		<method_context>
71			<method_credential user='root' group='root'/>
72		</method_context>
73	</exec_method>
74
75	<!-- to start stop routing services -->
76	<property_group name='general' type='framework'>
77		<propval name='action_authorization' type='astring'
78			value='solaris.smf.manage.routing' />
79		<propval name='value_authorization' type='astring'
80			value='solaris.smf.manage.routing' />
81	</property_group>
82
83	<!-- Properties in this group are used by routeadm(8) -->
84	<property_group name='routeadm' type='application'>
85		<stability value='Unstable' />
86		<propval name='protocol' type='astring' value='ipv4' />
87		<propval name='daemon' type='astring'
88			value='/usr/sbin/in.routed' />
89		<propval name='value_authorization' type='astring'
90			value='solaris.smf.value.routing' />
91	</property_group>
92
93	<!-- Properties in this group are modifiable via routeadm(8) -->
94	<property_group name='routing' type='application'>
95		<stability value='Evolving' />
96
97		<!-- Equivalent to -A option if false -->
98		<propval name='ignore_auth' type='boolean' value='true' />
99
100		<!-- Equivalent to -F specificied route minimization list -->
101		<propval name='minimize_routes' type='astring' value=''/>
102
103		<!-- Equivalent to -g option if true -->
104		<propval name='offer_default_route' type='boolean'
105		    value='false' />
106
107		<!-- Equivalent to -h option if false -->
108		<propval name='advertise_host_routes' type='boolean'
109		    value='true' />
110
111		<!-- Equivalent to -m option if true -->
112		<propval name='advertise_host_routes_primary' type='boolean'
113		    value='false' />
114
115		<!-- Equivalent to -n option if false -->
116		<propval name='install_routes' type='boolean' value='true' />
117
118		<!-- Equivalent to -P specified parameter list -->
119		<propval name='parameters' type='astring' value='' />
120
121		<!-- Equivalent to the -q option if true -->
122		<propval name='quiet_mode' type='boolean' value='false' />
123
124		<!-- Equivalent to -s option if true -->
125		<propval name='supply_routes' type='boolean' value='false' />
126
127		<!-- Equivalent to -S option if true -->
128		<propval name='default_routes_only' type='boolean'
129			value='false' />
130
131		<!-- Equivalent to -T tracefile option -->
132		<propval name='log_file' type='astring' value='' />
133
134		<!-- Equivalent to -v/-z option if true -->
135		<propval name='debug' type='boolean' value='false' />
136
137		<propval name='value_authorization' type='astring'
138			value='solaris.smf.value.routing' />
139	</property_group>
140
141	<property_group name='firewall_context' type='com.sun,fw_definition'>
142		<propval name='name' type='astring' value='route' />
143		<propval name='ipf_method' type='astring'
144			value='/lib/svc/method/svc-route ipfilter' />
145	</property_group>
146
147	<property_group name='firewall_config' type='com.sun,fw_configuration'>
148		<propval name='policy' type='astring' value='use_global' />
149		<propval name='block_policy' type='astring'
150			value='use_global' />
151		<propval name='apply_to' type='astring' value='' />
152		<propval name='exceptions' type='astring' value='' />
153		<propval name='target' type='astring' value='' />
154		<propval name='value_authorization' type='astring'
155			value='solaris.smf.value.firewall.config' />
156	</property_group>
157
158	<template>
159		<common_name>
160			<loctext xml:lang='C'>
161				in.routed network routing daemon
162			</loctext>
163		</common_name>
164		<documentation>
165			<manpage title='in.routed' section='8'
166				manpath='/usr/share/man' />
167		</documentation>
168	</template>
169	</instance>
170	<stability value='Unstable' />
171</service>
172
173</service_bundle>
174