xref: /titanic_41/usr/src/cmd/rpcbind/bind.xml (revision 69bbc66400b6af121ee9f95667811cc0acd84d6e)
1<?xml version='1.0'?>
2<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
3
4<!--
5 Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
6 Use is subject to license terms.
7
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
29	ident	"%Z%%M%	%I%	%E% SMI"
30
31	NOTE:  This service manifest is not editable; its contents will
32	be overwritten by package or patch operations, including
33	operating system upgrade.  Make customizations in a different
34	file.
35
36	Service manifest for rpcbind
37-->
38
39<service_bundle type='manifest' name='SUNWcsr:rpcbind'>
40
41<service
42    name='network/rpc/bind'
43    type='service'
44    version='1'>
45
46    	<create_default_instance enabled='true' />
47
48	<single_instance />
49
50	<dependency
51		name='fs'
52		grouping='require_all'
53		restart_on='none'
54		type='service'>
55		<service_fmri value='svc:/system/filesystem/minimal' />
56	</dependency>
57
58	<!--
59		rpcbind(1M) has a strong dependency on the hostname.
60	-->
61	<dependency
62		name='identity'
63		grouping='require_all'
64		restart_on='refresh'
65		type='service'>
66		<service_fmri
67			value='svc:/system/identity:node' />
68	</dependency>
69
70	<dependency
71		name='sysidtool'
72		grouping='require_all'
73		restart_on='none'
74		type='service'>
75		<service_fmri
76			value='svc:/system/sysidtool:net' />
77	</dependency>
78
79	<dependency
80		name='routing'
81		grouping='optional_all'
82		restart_on='none'
83		type='service'>
84		<service_fmri
85			value='svc:/network/initial:default' />
86	</dependency>
87
88	<exec_method
89		type='method'
90		name='start'
91		exec='/lib/svc/method/rpc-bind %m'
92		timeout_seconds='60'>
93		<method_context>
94			<method_credential
95				user='root'
96				group='root'
97				privileges='basic,file_chown,file_chown_self,file_owner,net_privaddr,proc_setid,sys_nfs,net_bindmlp'
98				/>
99		</method_context>
100	</exec_method>
101
102	<exec_method
103		type='method'
104		name='stop'
105		exec='/lib/svc/method/rpc-bind %m %{restarter/contract}'
106		timeout_seconds='60'>
107		<method_context>
108			<method_credential
109				user='root'
110				group='root'
111				privileges='basic,proc_owner'
112				/>
113		</method_context>
114	</exec_method>
115
116	<property_group name='config' type='application' >
117		<!-- default property settings for rpcbind(1M). -->
118
119		<!-- enable_tcpwrappers affects the wrapping of rpcbind,
120		     see rpcbind(1M) and tcpd(1M) for details.
121		     The default value is 'false'.
122		     A values of 'true' results in wrapping all UDP/TCP
123		     calls to the portmapper with libwrap. Note that
124		     rpcbind(1M) will not resolve or lookup names while
125		     doing tcp wrapper processing.
126		-->
127		<propval
128			name='enable_tcpwrappers'
129			type='boolean'
130			value='false' />
131
132		<!-- verbose_logging affects the amount of information
133		     which is logged by the tcpwrapper code.
134		     The default is 'false'.
135		     This property has no effect when tcp wrappers are not
136		     enabled.
137		-->
138		<propval
139			name='verbose_logging'
140			type='boolean'
141			value='false' />
142
143		<!-- allow_indirect affects the forwarding of RPC calls
144		     indirect rpcbind calls using rpcb_rmtcall(3NSL).
145		     The default value is 'true'. By default this is allowed
146		     for all services except for a handful.
147		     A value of 'false' stops all indirect calls. This will
148		     also disable broadcast rpc. NIS broadcast clients rely
149		     on this functionality to exist on NIS servers.
150		-->
151		<propval
152			name='allow_indirect'
153			type='boolean'
154			value='true' />
155	</property_group>
156
157	<stability value='Unstable' />
158
159	<template>
160		<common_name>
161			<loctext xml:lang='C'>
162				RPC bindings
163			</loctext>
164		</common_name>
165		<documentation>
166			<manpage title='rpcbind' section='1M'
167				manpath='/usr/share/man' />
168		</documentation>
169	</template>
170
171</service>
172
173</service_bundle>
174