Debian Codegraph @

policy/org.freedesktop.packagekit.policy.in

raw ◀ ▶
1 Debian patch touch this file
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE policyconfig PUBLIC
3 "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
4 "http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
5 <policyconfig>
6
7 <!--
8 Policy definitions for PackageKit system actions.
9 Copyright (c) 2007-2009 Richard Hughes <[email protected]>
10 -->
11
12 <vendor>The PackageKit Project</vendor>
13 <vendor_url>https://www.freedesktop.org/software/PackageKit/</vendor_url>
14 <icon_name>package-x-generic</icon_name>
15
16 <action id="org.freedesktop.packagekit.cancel-foreign">
17 <!-- SECURITY:
18 - Normal users are allowed to cancel their own task without
19 authentication, but a different user id needs the admin password
20 to cancel another users task.
21 -->
22 <description>Cancel foreign task</description>
23 <message>Authentication is required to cancel a task that was not started by yourself</message>
24 <icon_name>package-x-generic</icon_name>
25 <defaults>
26 <allow_any>auth_admin</allow_any>
27 <allow_inactive>auth_admin</allow_inactive>
28 <allow_active>auth_admin_keep</allow_active>
29 </defaults>
30 </action>
31
32 <action id="org.freedesktop.packagekit.package-install">
33 <!-- SECURITY:
34 - Normal users need authentication to install signed packages
35 from signed repositories, because otherwise the system is
36 only as secure as the least-secure package available in the
37 repositories.
38 -->
39 <description>Install signed package</description>
40 <message>Authentication is required to install software</message>
41 <icon_name>package-x-generic</icon_name>
42 <defaults>
43 <allow_any>auth_admin</allow_any>
44 <allow_inactive>auth_admin</allow_inactive>
45 <allow_active>auth_admin_keep</allow_active>
46 </defaults>
47 </action>
48
49 <action id="org.freedesktop.packagekit.package-install-untrusted">
50 <!-- SECURITY:
51 - Normal users require admin authentication to install untrusted or
52 unrecognised packages, as allowing users to do this without a
53 password would be a massive security hole.
54 - This is not retained as each package should be authenticated.
55 -->
56 <description>Install untrusted local file</description>
57 <message>Authentication is required to install untrusted software</message>
58 <icon_name>package-x-generic</icon_name>
59 <defaults>
60 <allow_any>auth_admin</allow_any>
61 <allow_inactive>auth_admin</allow_inactive>
62 <allow_active>auth_admin</allow_active>
63 </defaults>
64 <annotate key="org.freedesktop.policykit.imply">org.freedesktop.packagekit.package-install</annotate>
65 </action>
66
67 <action id="org.freedesktop.packagekit.package-reinstall">
68 <!-- SECURITY
69 - Normal users require admin authentication to reinstall packages.
70 - Authorization to install packages does not imply permissions to
71 reinstall them and vice versa.
72 - If a package in question is not trusted, user's permission to install
73 untrusted package will be checked as well.
74 -->
75 <description>Install already installed package again</description>
76 <message>Authentication is required to reinstall software</message>
77 <icon_name>package-x-generic</icon_name>
78 <defaults>
79 <allow_any>auth_admin</allow_any>
80 <allow_inactive>auth_admin</allow_inactive>
81 <allow_active>auth_admin_keep</allow_active>
82 </defaults>
83 </action>
84
85 <action id="org.freedesktop.packagekit.package-downgrade">
86 <!-- SECURITY
87 - Normal users require admin authentication to downgrade packages.
88 - User authorized to downgrade signed packages is authorized to install
89 them as well.
90 - If a package in question is not trusted, user's permission to install
91 untrusted package will be checked as well.
92 -->
93 <description>Install older version of installed package</description>
94 <message>Authentication is required to downgrade software</message>
95 <icon_name>package-x-generic</icon_name>
96 <defaults>
97 <allow_any>auth_admin</allow_any>
98 <allow_inactive>auth_admin</allow_inactive>
•99 <allow_active>auth_admin</allow_active>
100 </defaults>
101 <annotate key="org.freedesktop.policykit.imply">org.freedesktop.packagekit.package-install</annotate>
102 </action>
103
104 <action id="org.freedesktop.packagekit.system-trust-signing-key">
105 <!-- SECURITY:
106 - Normal users require admin authentication to add signing keys.
107 - This implies adding an explicit trust, and should not be granted
108 without a secure authentication.
109 - This is not kept as each package should be authenticated.
110 -->
111 <description>Trust a key used for signing software</description>
112 <message>Authentication is required to consider a key used for signing software as trusted</message>
113 <icon_name>package-x-generic</icon_name>
114 <defaults>
115 <allow_any>auth_admin</allow_any>
116 <allow_inactive>auth_admin</allow_inactive>
117 <allow_active>auth_admin</allow_active>
118 </defaults>
119 </action>
120
121 <action id="org.freedesktop.packagekit.package-eula-accept">
122 <!-- SECURITY:
123 - Normal users do not require admin authentication to accept new
124 licence agreements.
125 - Change this to 'auth_admin' for environments where users should not
126 be given the option to make legal decisions.
127 -->
128 <description>Accept EULA</description>
129 <message>Authentication is required to accept a EULA</message>
130 <icon_name>package-x-generic</icon_name>
131 <defaults>
132 <allow_any>auth_admin</allow_any>
133 <allow_inactive>auth_admin</allow_inactive>
•134 <allow_active>auth_admin_keep</allow_active>
135 </defaults>
136 </action>
137
138 <action id="org.freedesktop.packagekit.package-remove">
139 <!-- SECURITY:
140 - Normal users require admin authentication to remove packages as
141 this can make the system unbootable or stop other applications from
142 working.
143 - Be sure to close the tool used to remove the packages after the
144 admin authentication has been obtained, otherwise packages can still
145 be removed. If this is not possible, change this authentication to
146 'auth_admin'.
147 -->
148 <description>Remove package</description>
149 <message>Authentication is required to remove software</message>
150 <icon_name>package-x-generic</icon_name>
151 <defaults>
152 <allow_any>auth_admin</allow_any>
153 <allow_inactive>auth_admin</allow_inactive>
•154 <allow_active>auth_admin</allow_active>
155 </defaults>
156 <annotate key="org.freedesktop.policykit.imply">org.freedesktop.packagekit.package-install</annotate>
157 </action>
158
159 <action id="org.freedesktop.packagekit.system-update">
160 <!-- SECURITY:
161 - Normal users do not require admin authentication to update the
162 system as the packages will be signed, and the action is required
163 to update the system when unattended.
164 - Changing this to anything other than 'yes' will break unattended
165 updates.
166 -->
167 <description>Update software</description>
168 <message>Authentication is required to update software</message>
169 <icon_name>package-x-generic</icon_name>
170 <defaults>
171 <allow_any>auth_admin</allow_any>
172 <allow_inactive>auth_admin</allow_inactive>
•173 <allow_active>auth_admin_keep</allow_active>
174 </defaults>
175 </action>
176
177 <action id="org.freedesktop.packagekit.system-sources-configure">
178 <!-- SECURITY:
179 - Normal users require admin authentication to enable or disable
180 software repositories as this can be used to enable new updates or
181 install different versions of software.
182 -->
183 <description>Change software repository parameters</description>
184 <message>Authentication is required to change software repository parameters</message>
185 <icon_name>package-x-generic</icon_name>
186 <defaults>
187 <allow_any>auth_admin</allow_any>
188 <allow_inactive>auth_admin</allow_inactive>
189 <allow_active>auth_admin_keep</allow_active>
190 </defaults>
191 </action>
192
193 <action id="org.freedesktop.packagekit.system-sources-refresh">
194 <!-- SECURITY:
195 - Normal users do not require admin authentication to refresh the
196 cache, as this doesn't actually install or remove software.
197 -->
198 <description>Refresh system repositories</description>
199 <message>Authentication is required to refresh the system repositories</message>
200 <icon_name>package-x-generic</icon_name>
201 <defaults>
202 <allow_any>auth_admin</allow_any>
•203 <allow_inactive>yes</allow_inactive>
204 <allow_active>yes</allow_active>
205 </defaults>
206 </action>
207
208 <action id="org.freedesktop.packagekit.system-network-proxy-configure">
209 <!-- SECURITY:
210 - Normal users do not require admin authentication to set the proxy
211 used for downloading packages.
212 -->
213 <description>Set network proxy</description>
214 <message>Authentication is required to set the network proxy used for downloading software</message>
215 <icon_name>preferences-system-network-proxy</icon_name>
216 <defaults>
217 <allow_any>auth_admin</allow_any>
218 <allow_inactive>auth_admin</allow_inactive>
219 <allow_active>yes</allow_active>
220 </defaults>
221 </action>
222
223 <action id="org.freedesktop.packagekit.upgrade-system">
224 <!-- SECURITY:
225 - Normal users require admin authentication to upgrade the disto as
226 this can make the system unbootable or stop other applications from
227 working.
228 -->
229 <description>Upgrade System</description>
230 <message>Authentication is required to upgrade the operating system</message>
231 <icon_name>package-x-generic</icon_name>
232 <defaults>
233 <allow_any>no</allow_any>
234 <allow_inactive>no</allow_inactive>
235 <allow_active>auth_admin</allow_active>
236 </defaults>
237 </action>
238
239 <action id="org.freedesktop.packagekit.repair-system">
240 <!-- SECURITY:
241 - Normal users require admin authentication to repair the system
242 since this can make the system unbootable or stop other
243 applications from working.
244 -->
245 <description>Repair System</description>
246 <message>Authentication is required to repair the installed software</message>
247 <icon_name>package-x-generic</icon_name>
248 <defaults>
249 <allow_any>auth_admin</allow_any>
250 <allow_inactive>auth_admin</allow_inactive>
251 <allow_active>auth_admin</allow_active>
252 </defaults>
253 </action>
254
255 <action id="org.freedesktop.packagekit.trigger-offline-update">
256 <!-- SECURITY:
257 - Normal users are able to ask updates to be installed at
258 early boot time without a password.
259 -->
260 <description>Trigger offline updates</description>
261 <message>Authentication is required to trigger offline updates</message>
262 <icon_name>package-x-generic</icon_name>
263 <defaults>
264 <allow_any>auth_admin</allow_any>
265 <allow_inactive>yes</allow_inactive>
266 <allow_active>yes</allow_active>
267 </defaults>
268 </action>
269
270 <action id="org.freedesktop.packagekit.trigger-offline-upgrade">
271 <!-- SECURITY:
272 - Normal users require admin authentication to upgrade the system
273 to a new distribution since this can make the system unbootable or
274 stop other applications from working.
275 -->
276 <description>Trigger offline updates</description>
277 <message>Authentication is required to trigger offline updates</message>
278 <icon_name>package-x-generic</icon_name>
279 <defaults>
280 <allow_any>auth_admin</allow_any>
281 <allow_inactive>auth_admin</allow_inactive>
282 <allow_active>auth_admin</allow_active>
283 </defaults>
284 </action>
285
286 <action id="org.freedesktop.packagekit.clear-offline-update">
287 <!-- SECURITY:
288 - Normal users are able to clear the updates message that is
289 shown after an updates are applied at boot time.
290 -->
291 <description>Clear offline update message</description>
292 <message>Authentication is required to clear the offline updates message</message>
293 <icon_name>package-x-generic</icon_name>
294 <defaults>
295 <allow_any>auth_admin</allow_any>
296 <allow_inactive>auth_admin</allow_inactive>
297 <allow_active>yes</allow_active>
298 </defaults>
299 </action>
300
301 </policyconfig>
302