]>
Commit | Line | Data |
---|---|---|
2d21ac55 A |
1 | /* |
2 | * Copyright (c) 2006-2007 Apple Inc. All rights reserved. | |
3 | * | |
4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ | |
5 | * | |
6 | * This file contains Original Code and/or Modifications of Original Code | |
7 | * as defined in and that are subject to the Apple Public Source License | |
8 | * Version 2.0 (the 'License'). You may not use this file except in | |
9 | * compliance with the License. The rights granted to you under the License | |
10 | * may not be used to create, or enable the creation or redistribution of, | |
11 | * unlawful or unlicensed copies of an Apple operating system, or to | |
12 | * circumvent, violate, or enable the circumvention or violation of, any | |
13 | * terms of an Apple operating system software license agreement. | |
14 | * | |
15 | * Please obtain a copy of the License at | |
16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. | |
17 | * | |
18 | * The Original Code and all software distributed under the License are | |
19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER | |
20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, | |
21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. | |
23 | * Please see the License for the specific language governing rights and | |
24 | * limitations under the License. | |
25 | * | |
26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ | |
27 | */ | |
28 | ||
b0d623f7 | 29 | #include <sys/param.h> |
2d21ac55 | 30 | #include <mac.h> |
b0d623f7 | 31 | #include <security/audit/audit.h> |
2d21ac55 A |
32 | |
33 | #if !CONFIG_MACF | |
34 | /* | |
35 | * XXX stubs until we fix <rdar://problem/4607887> | |
36 | */ | |
37 | int mac_check_ipc_method(void) | |
38 | { | |
39 | return 0; | |
40 | } | |
41 | int mac_check_port_copy_send(void) | |
42 | { | |
43 | return 0; | |
44 | } | |
45 | int mac_check_port_hold_receive(void) | |
46 | { | |
47 | return 0; | |
48 | } | |
49 | int mac_check_port_hold_send(void) | |
50 | { | |
51 | return 0; | |
52 | } | |
53 | int mac_check_port_make_send(void) | |
54 | { | |
55 | return 0; | |
56 | } | |
57 | int mac_check_port_move_receive(void) | |
58 | { | |
59 | return 0; | |
60 | } | |
61 | int mac_check_port_relabel(void) | |
62 | { | |
63 | return 0; | |
64 | } | |
65 | int mac_check_port_send(void) | |
66 | { | |
67 | return 0; | |
68 | } | |
69 | int mac_check_service_access(void) | |
70 | { | |
71 | return 0; | |
72 | } | |
73 | int mac_copy_cred_to_task(void) | |
74 | { | |
75 | return 0; | |
76 | } | |
77 | int mac_copy_port_label(void) | |
78 | { | |
79 | return 0; | |
80 | } | |
81 | int mac_create_kernel_port(void) | |
82 | { | |
83 | return 0; | |
84 | } | |
85 | int mac_create_kernel_task(void) | |
86 | { | |
87 | return 0; | |
88 | } | |
89 | int mac_create_port(void) | |
90 | { | |
91 | return 0; | |
92 | } | |
93 | int mac_create_task(void) | |
94 | { | |
95 | return 0; | |
96 | } | |
97 | int mac_destroy_port_label(void) | |
98 | { | |
99 | return 0; | |
100 | } | |
101 | int mac_destroy_task_label(void) | |
102 | { | |
103 | return 0; | |
104 | } | |
105 | int mac_externalize_port_label(void) | |
106 | { | |
107 | return 0; | |
108 | } | |
109 | int mac_externalize_task_label(void) | |
110 | { | |
111 | return 0; | |
112 | } | |
113 | int mac_init(void) | |
114 | { | |
115 | return 0; | |
116 | } | |
117 | int mac_init_mach(void) | |
118 | { | |
119 | return 0; | |
120 | } | |
121 | int mac_init_port_label(void) | |
122 | { | |
123 | return 0; | |
124 | } | |
125 | int mac_init_task_label(void) | |
126 | { | |
127 | return 0; | |
128 | } | |
129 | int mac_internalize_port_label(void) | |
130 | { | |
131 | return 0; | |
132 | } | |
133 | int mac_request_object_label(void) | |
134 | { | |
135 | return 0; | |
136 | } | |
137 | int mac_update_port_from_cred_label(void) | |
138 | { | |
139 | return 0; | |
140 | } | |
141 | int mac_update_port_kobject(void) | |
142 | { | |
143 | return 0; | |
144 | } | |
145 | int mac_associate_vnode_devfs(void) | |
146 | { | |
147 | return 0; | |
148 | } | |
149 | int mac_associate_vnode_extattr(void) | |
150 | { | |
151 | return 0; | |
152 | } | |
153 | int mac_associate_vnode_singlelabel(void) | |
154 | { | |
155 | return 0; | |
156 | } | |
157 | int mac_check_mount_getattr(void) | |
158 | { | |
159 | return 0; | |
160 | } | |
161 | int mac_check_mount_setattr(void) | |
162 | { | |
163 | return 0; | |
164 | } | |
165 | int mac_check_pipe_ioctl(void) | |
166 | { | |
167 | return 0; | |
168 | } | |
169 | int mac_check_pipe_kqfilter(void) | |
170 | { | |
171 | return 0; | |
172 | } | |
173 | int mac_check_pipe_read(void) | |
174 | { | |
175 | return 0; | |
176 | } | |
177 | int mac_check_pipe_select(void) | |
178 | { | |
179 | return 0; | |
180 | } | |
181 | int mac_check_pipe_stat(void) | |
182 | { | |
183 | return 0; | |
184 | } | |
185 | int mac_check_pipe_write(void) | |
186 | { | |
187 | return 0; | |
188 | } | |
189 | int mac_check_posix_sem_create(void) | |
190 | { | |
191 | return 0; | |
192 | } | |
193 | int mac_check_posix_sem_open(void) | |
194 | { | |
195 | return 0; | |
196 | } | |
197 | int mac_check_posix_sem_post(void) | |
198 | { | |
199 | return 0; | |
200 | } | |
201 | int mac_check_posix_sem_unlink(void) | |
202 | { | |
203 | return 0; | |
204 | } | |
205 | int mac_check_posix_sem_wait(void) | |
206 | { | |
207 | return 0; | |
208 | } | |
209 | int mac_check_posix_shm_create(void) | |
210 | { | |
211 | return 0; | |
212 | } | |
213 | int mac_check_posix_shm_mmap(void) | |
214 | { | |
215 | return 0; | |
216 | } | |
217 | int mac_check_posix_shm_open(void) | |
218 | { | |
219 | return 0; | |
220 | } | |
221 | int mac_check_posix_shm_stat(void) | |
222 | { | |
223 | return 0; | |
224 | } | |
225 | int mac_check_posix_shm_truncate(void) | |
226 | { | |
227 | return 0; | |
228 | } | |
229 | int mac_check_posix_shm_unlink(void) | |
230 | { | |
231 | return 0; | |
232 | } | |
233 | int mac_check_proc_getlcid(void) | |
234 | { | |
235 | return 0; | |
236 | } | |
237 | int mac_check_proc_fork(void) | |
238 | { | |
239 | return 0; | |
240 | } | |
241 | int mac_check_proc_sched(void) | |
242 | { | |
243 | return 0; | |
244 | } | |
245 | int mac_check_proc_setlcid(void) | |
246 | { | |
247 | return 0; | |
248 | } | |
249 | int mac_check_proc_signal(void) | |
250 | { | |
251 | return 0; | |
252 | } | |
253 | int mac_check_socket_received(void) | |
254 | { | |
255 | return 0; | |
256 | } | |
257 | int mac_check_proc_wait(void) | |
258 | { | |
259 | return 0; | |
260 | } | |
261 | int mac_check_system_acct(void) | |
262 | { | |
263 | return 0; | |
264 | } | |
265 | int mac_check_system_nfsd(void) | |
266 | { | |
267 | return 0; | |
268 | } | |
269 | int mac_check_system_reboot(void) | |
270 | { | |
271 | return 0; | |
272 | } | |
273 | int mac_check_system_settime(void) | |
274 | { | |
275 | return 0; | |
276 | } | |
277 | int mac_check_system_swapoff(void) | |
278 | { | |
279 | return 0; | |
280 | } | |
281 | int mac_check_system_swapon(void) | |
282 | { | |
283 | return 0; | |
284 | } | |
285 | int mac_check_system_sysctl(void) | |
286 | { | |
287 | return 0; | |
288 | } | |
289 | int mac_check_vnode_access(void) | |
290 | { | |
291 | return 0; | |
292 | } | |
293 | int mac_check_vnode_chdir(void) | |
294 | { | |
295 | return 0; | |
296 | } | |
297 | int mac_check_vnode_chroot(void) | |
298 | { | |
299 | return 0; | |
300 | } | |
301 | int mac_check_vnode_create(void) | |
302 | { | |
303 | return 0; | |
304 | } | |
305 | int mac_check_vnode_delete(void) | |
306 | { | |
307 | return 0; | |
308 | } | |
309 | int mac_check_vnode_deleteextattr(void) | |
310 | { | |
311 | return 0; | |
312 | } | |
313 | int mac_check_vnode_exchangedata(void) | |
314 | { | |
315 | return 0; | |
316 | } | |
317 | int mac_check_vnode_exec(void) | |
318 | { | |
319 | return 0; | |
320 | } | |
321 | int mac_check_vnode_getattrlist(void) | |
322 | { | |
323 | return 0; | |
324 | } | |
325 | int mac_check_vnode_getextattr(void) | |
326 | { | |
327 | return 0; | |
328 | } | |
329 | int mac_check_vnode_kqfilter(void) | |
330 | { | |
331 | return 0; | |
332 | } | |
333 | int mac_check_vnode_link(void) | |
334 | { | |
335 | return 0; | |
336 | } | |
337 | int mac_check_vnode_listextattr(void) | |
338 | { | |
339 | return 0; | |
340 | } | |
341 | int mac_check_vnode_lookup(void) | |
342 | { | |
343 | return 0; | |
344 | } | |
345 | int mac_check_vnode_mmap(void) | |
346 | { | |
347 | return 0; | |
348 | } | |
349 | int mac_check_vnode_open(void) | |
350 | { | |
351 | return 0; | |
352 | } | |
353 | int mac_check_vnode_read(void) | |
354 | { | |
355 | return 0; | |
356 | } | |
357 | int mac_check_vnode_readdir(void) | |
358 | { | |
359 | return 0; | |
360 | } | |
361 | int mac_check_vnode_readlink(void) | |
362 | { | |
363 | return 0; | |
364 | } | |
365 | int mac_check_vnode_rename_from(void) | |
366 | { | |
367 | return 0; | |
368 | } | |
369 | int mac_check_vnode_rename_to(void) | |
370 | { | |
371 | return 0; | |
372 | } | |
373 | int mac_check_vnode_revoke(void) | |
374 | { | |
375 | return 0; | |
376 | } | |
377 | int mac_check_vnode_select(void) | |
378 | { | |
379 | return 0; | |
380 | } | |
381 | int mac_check_vnode_setattrlist(void) | |
382 | { | |
383 | return 0; | |
384 | } | |
385 | int mac_check_vnode_setextattr(void) | |
386 | { | |
387 | return 0; | |
388 | } | |
389 | int mac_check_vnode_setflags(void) | |
390 | { | |
391 | return 0; | |
392 | } | |
393 | int mac_check_vnode_setmode(void) | |
394 | { | |
395 | return 0; | |
396 | } | |
397 | int mac_check_vnode_setowner(void) | |
398 | { | |
399 | return 0; | |
400 | } | |
401 | int mac_check_vnode_setutimes(void) | |
402 | { | |
403 | return 0; | |
404 | } | |
405 | int mac_check_vnode_stat(void) | |
406 | { | |
407 | return 0; | |
408 | } | |
409 | int mac_check_vnode_write(void) | |
410 | { | |
411 | return 0; | |
412 | } | |
413 | int mac_cleanup_vnode(void) | |
414 | { | |
415 | return 0; | |
416 | } | |
417 | int mac_copy_devfs_label(void) | |
418 | { | |
419 | return 0; | |
420 | } | |
421 | int mac_copy_vnode_label(void) | |
422 | { | |
423 | return 0; | |
424 | } | |
425 | int mac_create_cred(void) | |
426 | { | |
427 | return 0; | |
428 | } | |
429 | int mac_create_devfs_device(void) | |
430 | { | |
431 | return 0; | |
432 | } | |
433 | int mac_create_devfs_directory(void) | |
434 | { | |
435 | return 0; | |
436 | } | |
437 | int mac_create_mount(void) | |
438 | { | |
439 | return 0; | |
440 | } | |
441 | int mac_create_pipe(void) | |
442 | { | |
443 | return 0; | |
444 | } | |
445 | int mac_create_posix_sem(void) | |
446 | { | |
447 | return 0; | |
448 | } | |
449 | int mac_create_posix_shm(void) | |
450 | { | |
451 | return 0; | |
452 | } | |
453 | int mac_create_proc0(void) | |
454 | { | |
455 | return 0; | |
456 | } | |
457 | int mac_create_proc1(void) | |
458 | { | |
459 | return 0; | |
460 | } | |
461 | int mac_create_vnode_extattr(void) | |
462 | { | |
463 | return 0; | |
464 | } | |
465 | int mac_cred_label_alloc(void) | |
466 | { | |
467 | return 0; | |
468 | } | |
469 | int mac_cred_label_free(void) | |
470 | { | |
471 | return 0; | |
472 | } | |
473 | int mac_destroy_cred(void) | |
474 | { | |
475 | return 0; | |
476 | } | |
477 | int mac_destroy_devfsdirent(void) | |
478 | { | |
479 | return 0; | |
480 | } | |
481 | int mac_destroy_mount(void) | |
482 | { | |
483 | return 0; | |
484 | } | |
485 | int mac_destroy_pipe(void) | |
486 | { | |
487 | return 0; | |
488 | } | |
489 | int mac_destroy_posix_sem(void) | |
490 | { | |
491 | return 0; | |
492 | } | |
493 | int mac_destroy_posix_shm(void) | |
494 | { | |
495 | return 0; | |
496 | } | |
497 | int mac_destroy_proc(void) | |
498 | { | |
499 | return 0; | |
500 | } | |
501 | int mac_execve_enter(void) | |
502 | { | |
503 | return 0; | |
504 | } | |
505 | int mac_execve_transition(void) | |
506 | { | |
507 | return 0; | |
508 | } | |
509 | int mac_execve_will_transition(void) | |
510 | { | |
511 | return 0; | |
512 | } | |
513 | int mac_init_bsd(void) | |
514 | { | |
515 | return 0; | |
516 | } | |
517 | int mac_init_cred(void) | |
518 | { | |
519 | return 0; | |
520 | } | |
521 | int mac_init_devfsdirent(void) | |
522 | { | |
523 | return 0; | |
524 | } | |
525 | int mac_init_mount(void) | |
526 | { | |
527 | return 0; | |
528 | } | |
529 | int mac_init_pipe(void) | |
530 | { | |
531 | return 0; | |
532 | } | |
533 | int mac_init_posix_sem(void) | |
534 | { | |
535 | return 0; | |
536 | } | |
537 | int mac_init_posix_shm(void) | |
538 | { | |
539 | return 0; | |
540 | } | |
541 | int mac_init_proc(void) | |
542 | { | |
543 | return 0; | |
544 | } | |
545 | int mac_init_vnode(void) | |
546 | { | |
547 | return 0; | |
548 | } | |
549 | int mac_lctx_label_alloc(void) | |
550 | { | |
551 | return 0; | |
552 | } | |
553 | int mac_lctx_label_free(void) | |
554 | { | |
555 | return 0; | |
556 | } | |
557 | int mac_proc_create_lctx(void) | |
558 | { | |
559 | return 0; | |
560 | } | |
561 | int mac_proc_join_lctx(void) | |
562 | { | |
563 | return 0; | |
564 | } | |
565 | int mac_proc_leave_lctx(void) | |
566 | { | |
567 | return 0; | |
568 | } | |
569 | int mac_relabel_cred(void) | |
570 | { | |
571 | return 0; | |
572 | } | |
573 | int mac_relabel_vnode(void) | |
574 | { | |
575 | return 0; | |
576 | } | |
577 | int mac_update_devfsdirent(void) | |
578 | { | |
579 | return 0; | |
580 | } | |
581 | int mac_update_vnode_extattr(void) | |
582 | { | |
583 | return 0; | |
584 | } | |
585 | int mac_vnode_label_alloc(void) | |
586 | { | |
587 | return 0; | |
588 | } | |
589 | int mac_vnode_label_free(void) | |
590 | { | |
591 | return 0; | |
592 | } | |
593 | int vop_stdsetlabel_ea(void) | |
594 | { | |
595 | return 0; | |
596 | } | |
2d21ac55 A |
597 | int mac_kalloc(void) |
598 | { | |
599 | return 0; | |
600 | } | |
601 | int mac_kalloc_noblock(void) | |
602 | { | |
603 | return 0; | |
604 | } | |
605 | int mac_kfree(void) | |
606 | { | |
607 | return 0; | |
608 | } | |
609 | int mac_mbuf_alloc(void) | |
610 | { | |
611 | return 0; | |
612 | } | |
613 | int mac_mbuf_free(void) | |
614 | { | |
615 | return 0; | |
616 | } | |
617 | int mac_unwire(void) | |
618 | { | |
619 | return 0; | |
620 | } | |
621 | int mac_wire(void) | |
622 | { | |
623 | return 0; | |
624 | } | |
625 | int sysctl__security_mac_children(void) | |
626 | { | |
627 | return 0; | |
628 | } | |
629 | int mac_check_socket_accept(void) | |
630 | { | |
631 | return 0; | |
632 | } | |
633 | int mac_check_socket_accepted(void) | |
634 | { | |
635 | return 0; | |
636 | } | |
637 | int mac_check_socket_bind(void) | |
638 | { | |
639 | return 0; | |
640 | } | |
641 | int mac_check_socket_connect(void) | |
642 | { | |
643 | return 0; | |
644 | } | |
645 | int mac_check_socket_create(void) | |
646 | { | |
647 | return 0; | |
648 | } | |
649 | int mac_check_socket_getsockopt(void) | |
650 | { | |
651 | return 0; | |
652 | } | |
653 | int mac_check_socket_listen(void) | |
654 | { | |
655 | return 0; | |
656 | } | |
657 | int mac_check_socket_receive(void) | |
658 | { | |
659 | return 0; | |
660 | } | |
661 | int mac_check_socket_send(void) | |
662 | { | |
663 | return 0; | |
664 | } | |
665 | int mac_check_socket_setsockopt(void) | |
666 | { | |
667 | return 0; | |
668 | } | |
669 | int mac_fork_proc(void) | |
670 | { | |
671 | return 0; | |
672 | } | |
d1ecb069 A |
673 | int mac_proc_check_suspend_resume(void) |
674 | { | |
675 | return 0; | |
676 | } | |
2d21ac55 A |
677 | int mac_set_enforce_proc(void) |
678 | { | |
679 | return 0; | |
680 | } | |
681 | #endif /* CONFIG_MACF */ | |
b0d623f7 A |
682 | |
683 | #if !CONFIG_AUDIT | |
684 | int kau_will_audit(void) | |
685 | { | |
686 | return 0; | |
687 | } | |
688 | #endif |