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