components/dnsmasq/files/dnsmasq.xml
branchs11u3-sru
changeset 7892 12b3bc23e595
parent 3028 5e73a3a3f66a
equal deleted inserted replaced
7891:95cc369493f9 7892:12b3bc23e595
     1 <?xml version='1.0'?>
     1 <?xml version='1.0'?>
     2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
     2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
     3 <!-- 
     3 <!--
     4  Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
     4  Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved.
     5 
     5 
     6  This program is free software; you can redistribute it and/or modify
     6  This program is free software; you can redistribute it and/or modify
     7  it under the terms of the GNU General Public License as published by
     7  it under the terms of the GNU General Public License as published by
     8  the Free Software Foundation; either version 2 of the License, or
     8  the Free Software Foundation; either version 2 of the License, or
     9  (at your option) any later version.
     9  (at your option) any later version.
    66     <exec_method type='method' name='start'
    66     <exec_method type='method' name='start'
    67                  exec='/usr/lib/inet/dnsmasq'
    67                  exec='/usr/lib/inet/dnsmasq'
    68                  timeout_seconds='60' >
    68                  timeout_seconds='60' >
    69       <method_context>
    69       <method_context>
    70         <method_credential user='daemon' group='daemon'
    70         <method_credential user='daemon' group='daemon'
    71           privileges='basic,{net_privaddr}:53/udp,{net_privaddr}:53/tcp,{net_privaddr}:67/udp,{net_privaddr}:69/udp,{net_privaddr}:547/udp,net_icmpaccess,sys_ip_config' />
    71           privileges='basic,{net_privaddr}:53/udp,{net_privaddr}:53/tcp,{net_privaddr}:67/udp,{net_privaddr}:69/udp,{net_privaddr}:547/udp,net_icmpaccess,sys_ip_config,{zone}:/var/cache/dnsmasq.leases' />
    72       </method_context>
    72       </method_context>
    73     </exec_method> 
    73     </exec_method>
    74 
    74 
    75     <exec_method type='method' name='stop' exec=':kill' timeout_seconds='60' />
    75     <exec_method type='method' name='stop' exec=':kill' timeout_seconds='60' />
    76 
    76 
    77     <instance name='default' enabled='false'>
    77     <instance name='default' enabled='false'>
    78       <!-- to start/stop/refresh the service -->
    78       <!-- to start/stop/refresh the service -->
    80         <propval name='action_authorization' type='astring'
    80         <propval name='action_authorization' type='astring'
    81                  value='solaris.smf.manage.dnsmasq' />
    81                  value='solaris.smf.manage.dnsmasq' />
    82         <propval name='value_authorization' type='astring'
    82         <propval name='value_authorization' type='astring'
    83                  value='solaris.smf.value.dnsmasq' />
    83                  value='solaris.smf.value.dnsmasq' />
    84       </property_group>
    84       </property_group>
    85      </instance> 
    85      </instance>
    86 
    86 
    87     <template>
    87     <template>
    88       <common_name>
    88       <common_name>
    89         <loctext xml:lang='C'>dnsmasq server</loctext>
    89         <loctext xml:lang='C'>dnsmasq server</loctext>
    90       </common_name>
    90       </common_name>