]> git.saurik.com Git - apple/securityd.git/blob - etc/authorization.plist
securityd-67.tar.gz
[apple/securityd.git] / etc / authorization.plist
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3 <plist version="1.0">
4 <dict>
5 <key>comment</key>
6 <string>The name of the requested right is matched against the keys. An exact match has priority, otherwise the longest match from the start is used. Note that the right will only match wildcard rules (ending in a ".") during this reduction.
7
8 allow rule: this is always allowed
9 &lt;key&gt;com.apple.TestApp.benign&lt;/key&gt;
10 &lt;string&gt;allow&lt;/string&gt;
11
12 deny rule: this is always denied
13 &lt;key&gt;com.apple.TestApp.dangerous&lt;/key&gt;
14 &lt;string&gt;deny&lt;/string&gt;
15
16 user rule: successful authentication as a user in the specified group(5) allows the associated right.
17
18 The shared property specifies whether a credential generated on success is shared with other apps (same "session"). This property defaults to false if not specified.
19
20 The timeout property specifies the maximum age of a (cached/shared) credential accepted for this rule.
21
22 The allow-root property specifies whether a right should be allowed automatically if the requesting process is running with uid == 0. This defaults to false if not specified.
23
24 See remaining rules for examples.
25 </string>
26 <key>rights</key>
27 <dict>
28 <key></key>
29 <dict>
30 <key>class</key>
31 <string>rule</string>
32 <key>comment</key>
33 <string>All other rights will be matched by this rule.</string>
34 <key>rule</key>
35 <string>default</string>
36 </dict>
37 <key>config.add.</key>
38 <dict>
39 <key>class</key>
40 <string>allow</string>
41 <key>comment</key>
42 <string>wildcard right for adding rights. Anyone is allowed to add any (non-wildcard) rights</string>
43 </dict>
44 <key>config.config.</key>
45 <dict>
46 <key>class</key>
47 <string>deny</string>
48 <key>comment</key>
49 <string>wildcard right for any change to meta-rights for db modification. Not allowed programmatically (just edit this file)</string>
50 </dict>
51 <key>config.modify.</key>
52 <dict>
53 <key>class</key>
54 <string>rule</string>
55 <key>comment</key>
56 <string>wildcard right for modifying rights. Admins are allowed to modify any (non-wildcard) rights. Root does not require authentication.</string>
57 <key>k-of-n</key>
58 <integer>1</integer>
59 <key>rule</key>
60 <array>
61 <string>is-root</string>
62 <string>authenticate-admin</string>
63 </array>
64 </dict>
65 <key>config.remove.</key>
66 <dict>
67 <key>class</key>
68 <string>rule</string>
69 <key>comment</key>
70 <string>wildcard right for deleting rights. Admins are allowed to delete any (non-wildcard) rights. Root does not require authentication.</string>
71 <key>k-of-n</key>
72 <integer>1</integer>
73 <key>rule</key>
74 <array>
75 <string>is-root</string>
76 <string>authenticate-admin</string>
77 </array>
78 </dict>
79 <key>config.remove.system.</key>
80 <dict>
81 <key>class</key>
82 <string>deny</string>
83 <key>comment</key>
84 <string>wildcard right for deleting system rights.</string>
85 </dict>
86 <key>sys.openfile.</key>
87 <dict>
88 <key>class</key>
89 <string>user</string>
90 <key>comment</key>
91 <string>See authopen(1) for information on the use of this right.</string>
92 <key>group</key>
93 <string>admin</string>
94 <key>shared</key>
95 <false/>
96 <key>timeout</key>
97 <integer>300</integer>
98 </dict>
99 <key>system.device.dvd.setregion.initial</key>
100 <dict>
101 <key>class</key>
102 <string>user</string>
103 <key>comment</key>
104 <string>Used by the dvd player to set the regioncode the first time. Note that changed the region code after it has been set requires a different right (system.device.dvd.setregion.change)
105 Credentials remain valid indefinitely after they've been obtained.
106 An acquired credential is shared amongst all clients.</string>
107 <key>group</key>
108 <string>admin</string>
109 <key>shared</key>
110 <true/>
111 </dict>
112 <key>system.login.console</key>
113 <dict>
114 <key>class</key>
115 <string>evaluate-mechanisms</string>
116 <key>comment</key>
117 <string>Login mechanism based rule. Not for general use, yet.
118 builtin:krb5authenticate can be used to hinge local authentication on a successful kerberos authentication and kdc verification.
119 builtin:krb5authnoverify skips the kdc verification. Both fall back on local authentication.</string>
120 <key>mechanisms</key>
121 <array>
122 <string>builtin:auto-login,privileged</string>
123 <string>loginwindow_builtin:login</string>
124 <string>builtin:reset-password,privileged</string>
125 <string>authinternal</string>
126 <string>builtin:getuserinfo,privileged</string>
127 <string>builtin:sso,privileged</string>
128 <string>HomeDirMechanism:login,privileged</string>
129 <string>HomeDirMechanism:status</string>
130 <string>MCXMechanism:login</string>
131 <string>loginwindow_builtin:success</string>
132 <string>loginwindow_builtin:done</string>
133 </array>
134 </dict>
135 <key>system.login.done</key>
136 <dict>
137 <key>class</key>
138 <string>evaluate-mechanisms</string>
139 <key>comment</key>
140 <string>builtin:krb5login can be used to do kerberos authentication as a side-effect of logging in. Local username/password will be used.</string>
141 <key>mechanisms</key>
142 <array>
143 </array>
144 </dict>
145 <key>system.login.pam</key>
146 <dict>
147 <key>class</key>
148 <string>evaluate-mechanisms</string>
149 <key>tries</key>
150 <integer>1</integer>
151 <key>mechanisms</key>
152 <array>
153 <string>push_hints_to_context</string>
154 <string>authinternal</string>
155 </array>
156 </dict>
157 <key>system.login.screensaver</key>
158 <dict>
159 <key>class</key>
160 <string>rule</string>
161 <key>comment</key>
162 <string>the owner as well as any admin can unlock the screensaver;modify the group key to change this.</string>
163 <key>rule</key>
164 <string>authenticate-session-owner-or-admin</string>
165 </dict>
166 <key>system.login.tty</key>
167 <dict>
168 <key>class</key>
169 <string>evaluate-mechanisms</string>
170 <key>tries</key>
171 <integer>1</integer>
172 <key>mechanisms</key>
173 <array>
174 <string>push_hints_to_context</string>
175 <string>authinternal</string>
176 </array>
177 </dict>
178 <key>system.keychain.create.loginkc</key>
179 <dict>
180 <key>allow-root</key>
181 <false/>
182 <key>class</key>
183 <string>evaluate-mechanisms</string>
184 <key>comment</key>
185 <string>Used by Security framework when you add an item to a unconfigured default keychain</string>
186 <key>mechanisms</key>
187 <array>
188 <string>loginKC:queryCreate</string>
189 <string>loginKC:showPasswordUI</string>
190 <string>authinternal</string>
191 </array>
192 <key>session-owner</key>
193 <true/>
194 <key>shared</key>
195 <false/>
196 </dict>
197 <key>system.keychain.modify</key>
198 <dict>
199 <key>class</key>
200 <string>user</string>
201 <key>comment</key>
202 <string>Used by Keychain Access when editing a system keychain.</string>
203 <key>group</key>
204 <string>admin</string>
205 <key>shared</key>
206 <false/>
207 <key>timeout</key>
208 <integer>300</integer>
209 </dict>
210 <key>system.preferences</key>
211 <dict>
212 <key>allow-root</key>
213 <true/>
214 <key>class</key>
215 <string>user</string>
216 <key>comment</key>
217 <string>This right is checked by the Admin framework when making changes to the system preferences.</string>
218 <key>group</key>
219 <string>admin</string>
220 <key>shared</key>
221 <true/>
222 </dict>
223 <key>system.preferences.accounts</key>
224 <dict>
225 <key>allow-root</key>
226 <true/>
227 <key>class</key>
228 <string>user</string>
229 <key>comment</key>
230 <string>This right is checked by the Admin framework when making changes to the accounts preference pane</string>
231 <key>group</key>
232 <string>admin</string>
233 <key>shared</key>
234 <false/>
235 </dict>
236 <key>system.printingmanager</key>
237 <dict>
238 <key>class</key>
239 <string>rule</string>
240 <key>comment</key>
241 <string>The following right is checked for printing to locked printers.</string>
242 <key>rule</key>
243 <string>authenticate-admin</string>
244 </dict>
245 <key>system.preferences.accessibility</key>
246 <dict>
247 <key>allow-root</key>
248 <true/>
249 <key>class</key>
250 <string>user</string>
251 <key>comment</key>
252 <string>This right is checked by the Admin framework when enabling or disabling the Accessibility APIs</string>
253 <key>group</key>
254 <string>admin</string>
255 <key>shared</key>
256 <false/>
257 <key>timeout</key>
258 <integer>0</integer>
259 </dict>
260 <key>com.apple.activitymonitor.kill</key>
261 <dict>
262 <key>class</key>
263 <string>user</string>
264 <key>comment</key>
265 <string>Used by Activity Monitor to authorize killing processes not owned by the user</string>
266 <key>group</key>
267 <string>admin</string>
268 <key>shared</key>
269 <false/>
270 <key>timeout</key>
271 <integer>0</integer>
272 </dict>
273 <key>com.apple.Safari.parental-controls</key>
274 <dict>
275 <key>allow-root</key>
276 <true/>
277 <key>class</key>
278 <string>user</string>
279 <key>comment</key>
280 <string>This right is checked when changing parental controls for Safari</string>
281 <key>group</key>
282 <string>admin</string>
283 <key>shared</key>
284 <false/>
285 <key>timeout</key>
286 <integer>0</integer>
287 </dict>
288 <key>system.privilege.admin</key>
289 <dict>
290 <key>allow-root</key>
291 <true/>
292 <key>class</key>
293 <string>user</string>
294 <key>comment</key>
295 <string>Used by AuthorizationExecuteWithPrivileges(...)
296 AuthorizationExecuteWithPrivileges is used by programs requesting
297 to run a tool as root (ie. some installers).
298 Credentials remain valid 5 minutes after they've been obtained.
299 An acquired credential isn't shared with other clients.
300 Clients running as root will be granted this right automatically.
301 </string>
302 <key>group</key>
303 <string>admin</string>
304 <key>shared</key>
305 <false/>
306 <key>timeout</key>
307 <integer>300</integer>
308 </dict>
309 <key>system.restart</key>
310 <dict>
311 <key>class</key>
312 <string>evaluate-mechanisms</string>
313 <key>comment</key>
314 <string>Multisession restart mechanisms</string>
315 <key>mechanisms</key>
316 <array>
317 <string>RestartAuthorization:restart</string>
318 <string>RestartAuthorization:authenticate</string>
319 <string>RestartAuthorization:success</string>
320 </array>
321 </dict>
322 <key>system.shutdown</key>
323 <dict>
324 <key>class</key>
325 <string>evaluate-mechanisms</string>
326 <key>comment</key>
327 <string>Multisession shutdown mechanisms</string>
328 <key>mechanisms</key>
329 <array>
330 <string>RestartAuthorization:shutdown</string>
331 <string>RestartAuthorization:authenticate</string>
332 <string>RestartAuthorization:success</string>
333 </array>
334 </dict>
335 <key>system.burn</key>
336 <dict>
337 <key>class</key>
338 <string>allow</string>
339 <key>comment</key>
340 <string>authorization to burn media</string>
341 </dict>
342 <key>system.services.directory.configure</key>
343 <dict>
344 <key>class</key>
345 <string>user</string>
346 <key>group</key>
347 <string>admin</string>
348 <key>allow-root</key>
349 <true/>
350 <key>shared</key>
351 <true/>
352 <key>timeout</key>
353 <integer>300</integer>
354 <key>comment</key>
355 <string>authorization to make directory service changes</string>
356 </dict>
357 <key>com.apple.server.admin.streaming</key>
358 <dict>
359 <key>class</key>
360 <string>user</string>
361 <key>comment</key>
362 <string>Used for admin requests with the QuickTime Streaming Server.</string>
363 <key>group</key>
364 <string>admin</string>
365 <key>shared</key>
366 <false/>
367 <key>allow-root</key>
368 <true/>
369 <key>timeout</key>
370 <integer>0</integer>
371 </dict>
372 <key>system.install.admin.user</key>
373 <dict>
374 <key>class</key>
375 <string>user</string>
376 <key>comment</key>
377 <string>Used by installer tool: user installling in admin domain (/Applications)</string>
378 <key>group</key>
379 <string>admin</string>
380 <key>shared</key>
381 <false/>
382 <key>timeout</key>
383 <integer>300</integer>
384 </dict>
385 <key>system.install.root.user</key>
386 <dict>
387 <key>class</key>
388 <string>user</string>
389 <key>comment</key>
390 <string>Used by installer tool: user installling in root domain (/System)</string>
391 <key>group</key>
392 <string>admin</string>
393 <key>shared</key>
394 <false/>
395 <key>timeout</key>
396 <integer>300</integer>
397 </dict>
398 <key>system.install.root.admin</key>
399 <dict>
400 <key>class</key>
401 <string>user</string>
402 <key>comment</key>
403 <string>Used by installer tool: admin installling in root domain (/System)</string>
404 <key>group</key>
405 <string>admin</string>
406 <key>shared</key>
407 <false/>
408 <key>timeout</key>
409 <integer>300</integer>
410 </dict>
411 <key>com.apple.appserver.privilege.admin</key>
412 <dict>
413 <key>class</key>
414 <string>rule</string>
415 <key>comment</key>
416 <string>Used to determine administrative access to the Application Server management tool.</string>
417 <key>rule</key>
418 <string>appserver-admin</string>
419 </dict>
420 <key>com.apple.appserver.privilege.user</key>
421 <dict>
422 <key>class</key>
423 <string>rule</string>
424 <key>comment</key>
425 <string>Used to determine user access to the Application Server management tool.</string>
426 <key>k-of-n</key>
427 <integer>1</integer>
428 <key>rule</key>
429 <array>
430 <string>appserver-admin</string>
431 <string>appserver-user</string>
432 </array>
433 </dict>
434 <key>com.apple.desktopservices</key>
435 <dict>
436 <key>class</key>
437 <string>user</string>
438 <key>comment</key>
439 <string>authorize privileged file operations from the finder</string>
440 <key>group</key>
441 <string>admin</string>
442 <key>shared</key>
443 <false/>
444 <key>timeout</key>
445 <integer>0</integer>
446 </dict>
447 <key>com.apple.builtin.generic-new-passphrase</key>
448 <dict>
449 <key>class</key>
450 <string>evaluate-mechanisms</string>
451 <key>mechanisms</key>
452 <array>
453 <string>builtin:generic-new-passphrase</string>
454 </array>
455 </dict>
456 <key>com.apple.builtin.generic-unlock</key>
457 <dict>
458 <key>class</key>
459 <string>evaluate-mechanisms</string>
460 <key>mechanisms</key>
461 <array>
462 <string>builtin:generic-unlock</string>
463 </array>
464 </dict>
465 <key>com.apple.builtin.confirm-access</key>
466 <dict>
467 <key>class</key>
468 <string>evaluate-mechanisms</string>
469 <key>mechanisms</key>
470 <array>
471 <string>builtin:confirm-access</string>
472 </array>
473 </dict>
474 <key>com.apple.builtin.confirm-access-password</key>
475 <dict>
476 <key>class</key>
477 <string>evaluate-mechanisms</string>
478 <key>mechanisms</key>
479 <array>
480 <string>builtin:confirm-access-password</string>
481 </array>
482 </dict>
483 </dict>
484 <key>rules</key>
485 <dict>
486 <key>allow</key>
487 <dict>
488 <key>class</key>
489 <string>allow</string>
490 <key>comment</key>
491 <string>allow anyone</string>
492 </dict>
493 <key>authenticate-admin</key>
494 <dict>
495 <key>class</key>
496 <string>user</string>
497 <key>comment</key>
498 <string>require the user asking for authorization to authenticate as an admin</string>
499 <key>group</key>
500 <string>admin</string>
501 <key>shared</key>
502 <true/>
503 <key>timeout</key>
504 <integer>0</integer>
505 </dict>
506 <key>authenticate-session-user</key>
507 <dict>
508 <key>class</key>
509 <string>user</string>
510 <key>comment</key>
511 <string>authenticate session owner</string>
512 <key>session-owner</key>
513 <true/>
514 </dict>
515 <key>authenticate-session-owner</key>
516 <dict>
517 <key>class</key>
518 <string>user</string>
519 <key>comment</key>
520 <string>authenticate session owner</string>
521 <key>session-owner</key>
522 <true/>
523 </dict>
524 <key>authenticate-session-owner-or-admin</key>
525 <dict>
526 <key>allow-root</key>
527 <false/>
528 <key>class</key>
529 <string>user</string>
530 <key>comment</key>
531 <string>the owner as well as any admin can authorize</string>
532 <key>group</key>
533 <string>admin</string>
534 <key>session-owner</key>
535 <true/>
536 <key>shared</key>
537 <false/>
538 </dict>
539 <key>is-admin</key>
540 <dict>
541 <key>class</key>
542 <string>user</string>
543 <key>comment</key>
544 <string>verify the user asking for authorization is an admin</string>
545 <key>group</key>
546 <string>admin</string>
547 <key>authenticate-user</key>
548 <false/>
549 <key>shared</key>
550 <string>true</string>
551 </dict>
552 <key>is-root</key>
553 <dict>
554 <key>allow-root</key>
555 <true/>
556 <key>class</key>
557 <string>user</string>
558 <key>authenticate-user</key>
559 <false/>
560 <key>comment</key>
561 <string>verify the process that created this authref is root</string>
562 </dict>
563 <key>appserver-user</key>
564 <dict>
565 <key>class</key>
566 <string>user</string>
567 <key>group</key>
568 <string>appserverusr</string>
569 </dict>
570 <key>appserver-admin</key>
571 <dict>
572 <key>class</key>
573 <string>user</string>
574 <key>group</key>
575 <string>appserveradm</string>
576 </dict>
577 <key>default</key>
578 <dict>
579 <key>class</key>
580 <string>user</string>
581 <key>comment</key>
582 <string>All other rights will be matched by this rule. Credentials remain valid 5 minutes after they've been obtained.
583 An acquired credential is shared amongst all clients.
584 </string>
585 <key>group</key>
586 <string>admin</string>
587 <key>shared</key>
588 <true/>
589 <key>timeout</key>
590 <integer>300</integer>
591 </dict>
592 <key>authenticate</key>
593 <dict>
594 <key>class</key>
595 <string>evaluate-mechanisms</string>
596 <key>mechanisms</key>
597 <array>
598 <string>builtin:authenticate</string>
599 <string>authinternal</string>
600 </array>
601 </dict>
602 </dict>
603 </dict>
604 </plist>