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