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