summaryrefslogtreecommitdiff
path: root/policy/org.freedesktop.packagekit.policy.in
blob: 4c4607d3d533e46aa4be42f4a66cf5be396b5fe0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
 "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
<policyconfig>

  <!--
    Policy definitions for PackageKit system actions.
    Copyright (c) 2007-2008 Richard Hughes <richard@hughsie.com>
  -->

  <vendor>The PackageKit Project</vendor>
  <vendor_url>http://www.packagekit.org/</vendor_url>
  <icon_name>package-x-generic</icon_name>

  <action id="org.freedesktop.packagekit.install">
    <_description>Install package</_description>
    <_message>Authentication is required to install a package</_message>
    <icon_name>pk-package-add</icon_name>
    <vendor_url>http://www.packagekit.org/pk-reference.html#methods-install-package</vendor_url>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep_always</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.packagekit.localinstall-untrusted">
    <_description>Install untrusted local file</_description>
    <_message>Further authentication is required to install an untrusted local file</_message>
    <icon_name>pk-package-add</icon_name>
    <vendor_url>http://www.packagekit.org/pk-reference.html#methods-install-file</vendor_url>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.packagekit.localinstall-trusted">
    <_description>Install local file</_description>
    <_message>Authentication is required to install a local file</_message>
    <icon_name>pk-package-add</icon_name>
    <vendor_url>http://www.packagekit.org/pk-reference.html#methods-install-file</vendor_url>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep_always</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.packagekit.install-signature">
    <_description>Install security signature</_description>
    <_message>Authentication is required to install a security signature</_message>
    <icon_name>pk-package-add</icon_name>
    <vendor_url>http://www.packagekit.org/pk-reference.html#methods-install-signature</vendor_url>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.packagekit.accept-eula">
    <_description>Accept EULA</_description>
    <_message>Authentication is required to accept a EULA</_message>
    <icon_name>pk-package-add</icon_name>
    <vendor_url>http://www.packagekit.org/pk-reference.html#methods-accept-eula</vendor_url>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep_always</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.packagekit.update-package">
    <_description>Update package</_description>
    <_message>Authentication is required to update packages</_message>
    <icon_name>pk-package-update</icon_name>
    <vendor_url>http://www.packagekit.org/pk-reference.html#methods-update</vendor_url>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep_always</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.packagekit.remove">
    <_description>Remove package</_description>
    <_message>Authentication is required to remove packages</_message>
    <icon_name>pk-package-delete</icon_name>
    <vendor_url>http://www.packagekit.org/pk-reference.html#methods-remove</vendor_url>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep_always</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.packagekit.update-system">
    <_description>Update all packages</_description>
    <_message>Authentication is required to update all packages</_message>
    <icon_name>pk-package-update</icon_name>
    <vendor_url>http://www.packagekit.org/pk-reference.html#methods-update-system</vendor_url>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep_always</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.packagekit.rollback">
    <_description>Rollback to a previous transaction</_description>
    <_message>Authentication is required to rollback a transaction</_message>
    <icon_name>pk-rollback</icon_name>
    <vendor_url>http://www.packagekit.org/pk-reference.html#methods-rollback</vendor_url>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep_always</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.packagekit.repo-change">
    <_description>Change software source parameters</_description>
    <_message>Authentication is required to change software source parameters</_message>
    <icon_name>pk-package-info</icon_name>
    <vendor_url>http://www.packagekit.org/pk-reference.html#methods-repo-enable</vendor_url>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep_always</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.packagekit.refresh-cache">
    <_description>Refresh package lists</_description>
    <_message>Authentication is required to refresh the package lists</_message>
    <icon_name>pk-refresh-cache</icon_name>
    <vendor_url>http://www.packagekit.org/pk-reference.html#methods-refresh-cache</vendor_url>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.packagekit.set-proxy">
    <_description>Set network proxy</_description>
    <_message>Authentication is required to set the network proxy used for downloading packages</_message>
    <icon_name>applications-internet</icon_name>
    <vendor_url>http://www.packagekit.org/pk-reference.html#methods-set-proxy</vendor_url>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

</policyconfig>