|
1 <?xml version="1.0" ?> |
|
2 <!DOCTYPE service_bundle |
|
3 SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'> |
|
4 <!-- |
|
5 CDDL HEADER START |
|
6 |
|
7 The contents of this file are subject to the terms of the |
|
8 Common Development and Distribution License (the "License"). |
|
9 You may not use this file except in compliance with the License. |
|
10 |
|
11 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
12 or http://www.opensolaris.org/os/licensing. |
|
13 See the License for the specific language governing permissions |
|
14 and limitations under the License. |
|
15 |
|
16 When distributing Covered Code, include this CDDL HEADER in each |
|
17 file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
18 If applicable, add the following below this CDDL HEADER, with the |
|
19 fields enclosed by brackets "[]" replaced with your own identifying |
|
20 information: Portions Copyright [yyyy] [name of copyright owner] |
|
21 |
|
22 CDDL HEADER END |
|
23 |
|
24 Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
|
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 <service_bundle type="manifest" name="system/polkit"> |
|
32 <service version="1" type="service" name="system/polkit"> |
|
33 |
|
34 <dependency restart_on="none" type="service" |
|
35 name="multi_user_dependency" grouping="require_all"> |
|
36 <service_fmri value="svc:/milestone/multi-user"/> |
|
37 </dependency> |
|
38 <dependency restart_on="none" type="service" |
|
39 name="name-services" grouping="require_all"> |
|
40 <service_fmri value="svc:/milestone/name-services"/> |
|
41 </dependency> |
|
42 <dependency restart_on="restart" type="service" |
|
43 name="dbus" grouping="require_all"> |
|
44 <service_fmri value="svc:/system/dbus"/> |
|
45 </dependency> |
|
46 |
|
47 <method_context> |
|
48 <method_credential user='root' clearance='ADMIN_HIGH' /> |
|
49 </method_context> |
|
50 |
|
51 <exec_method timeout_seconds="60" type="method" name="start" |
|
52 exec="/lib/svc/method/svc-polkit"/> |
|
53 <exec_method timeout_seconds="60" type="method" name="stop" |
|
54 exec=":kill"/> |
|
55 <exec_method timeout_seconds="60" type="method" name="refresh" |
|
56 exec=":true"/> |
|
57 |
|
58 <!-- Authorization --> |
|
59 <property_group name='general' type='framework'> |
|
60 <propval name='action_authorization' type='astring' |
|
61 value='solaris.smf.manage.dt.login' /> |
|
62 </property_group> |
|
63 |
|
64 <!-- |
|
65 We do not need a duration property group, because contract is |
|
66 the default. Search for duration in svc.startd(1M). |
|
67 --> |
|
68 <property_group name='options' type='application'> |
|
69 <propval name='debug' type='boolean' value='false' /> |
|
70 </property_group> |
|
71 |
|
72 <instance enabled="true" name="default"/> |
|
73 |
|
74 <template> |
|
75 <common_name> |
|
76 <loctext xml:lang="C"> |
|
77 PolKit |
|
78 </loctext> |
|
79 </common_name> |
|
80 <description> |
|
81 <loctext xml:lang="C"> |
|
82 PolKit is a toolkit for defining and handling authorizations for desktop software. |
|
83 </loctext> |
|
84 </description> |
|
85 <documentation> |
|
86 <manpage title='polkitd' section='8' manpath='/usr/share/man' /> |
|
87 </documentation> |
|
88 </template> |
|
89 </service> |
|
90 </service_bundle> |