]>
git.saurik.com Git - apple/xnu.git/blob - security/mac_stub.c
b3e4558173e7af8f343c567c2dde40537f70d5fc
2 * Copyright (c) 2006-2007 Apple Inc. All rights reserved.
4 * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
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.
15 * Please obtain a copy of the License at
16 * http://www.opensource.apple.com/apsl/ and read it before using this file.
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.
26 * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
29 #include <sys/param.h>
31 #include <security/audit/audit.h>
35 * XXX stubs until we fix <rdar://problem/4607887>
37 int mac_check_iokit_open(void)
41 int mac_check_iokit_set_properties(void)
45 int mac_check_iokit_hid_control(void)
49 int mac_check_ipc_method(void)
53 int mac_check_port_copy_send(void)
57 int mac_check_port_hold_receive(void)
61 int mac_check_port_hold_send(void)
65 int mac_check_port_make_send(void)
69 int mac_check_port_move_receive(void)
73 int mac_check_port_relabel(void)
77 int mac_check_port_send(void)
81 int mac_check_service_access(void)
85 int mac_copy_cred_to_task(void)
89 int mac_copy_port_label(void)
93 int mac_create_kernel_port(void)
97 int mac_create_kernel_task(void)
101 int mac_create_port(void)
105 int mac_create_task(void)
109 int mac_destroy_port_label(void)
113 int mac_destroy_task_label(void)
117 int mac_externalize_port_label(void)
121 int mac_externalize_task_label(void)
129 int mac_init_mach(void)
133 int mac_init_port_label(void)
137 int mac_init_task_label(void)
141 int mac_internalize_port_label(void)
145 int mac_request_object_label(void)
149 int mac_update_port_from_cred_label(void)
153 int mac_update_port_kobject(void)
157 int mac_associate_vnode_devfs(void)
161 int mac_associate_vnode_extattr(void)
165 int mac_associate_vnode_singlelabel(void)
169 int mac_check_mount_getattr(void)
173 int mac_check_mount_setattr(void)
177 int mac_check_pipe_ioctl(void)
181 int mac_check_pipe_kqfilter(void)
185 int mac_check_pipe_read(void)
189 int mac_check_pipe_select(void)
193 int mac_check_pipe_stat(void)
197 int mac_check_pipe_write(void)
201 int mac_check_posix_sem_create(void)
205 int mac_check_posix_sem_open(void)
209 int mac_check_posix_sem_post(void)
213 int mac_check_posix_sem_unlink(void)
217 int mac_check_posix_sem_wait(void)
221 int mac_check_posix_shm_create(void)
225 int mac_check_posix_shm_mmap(void)
229 int mac_check_posix_shm_open(void)
233 int mac_check_posix_shm_stat(void)
237 int mac_check_posix_shm_truncate(void)
241 int mac_check_posix_shm_unlink(void)
245 int mac_check_proc_getlcid(void)
249 int mac_check_proc_fork(void)
253 int mac_check_proc_sched(void)
257 int mac_check_proc_setlcid(void)
261 int mac_check_proc_signal(void)
265 int mac_check_socket_received(void)
269 int mac_check_proc_wait(void)
273 int mac_check_system_acct(void)
277 int mac_check_system_chud(void)
281 int mac_check_system_nfsd(void)
285 int mac_check_system_reboot(void)
289 int mac_check_system_settime(void)
293 int mac_check_system_swapoff(void)
297 int mac_check_system_swapon(void)
301 int mac_check_system_sysctl(void)
305 int mac_check_vnode_access(void)
309 int mac_check_vnode_chdir(void)
313 int mac_check_vnode_chroot(void)
317 int mac_check_vnode_create(void)
321 int mac_check_vnode_delete(void)
325 int mac_check_vnode_deleteextattr(void)
329 int mac_check_vnode_exchangedata(void)
333 int mac_check_vnode_exec(void)
337 int mac_check_vnode_getattrlist(void)
341 int mac_check_vnode_getextattr(void)
345 int mac_check_vnode_kqfilter(void)
349 int mac_check_vnode_link(void)
353 int mac_check_vnode_listextattr(void)
357 int mac_check_vnode_lookup(void)
361 int mac_check_vnode_mmap(void)
365 int mac_check_vnode_open(void)
369 int mac_check_vnode_read(void)
373 int mac_check_vnode_readdir(void)
377 int mac_check_vnode_readlink(void)
381 int mac_check_vnode_rename_from(void)
385 int mac_check_vnode_rename_to(void)
389 int mac_check_vnode_revoke(void)
393 int mac_check_vnode_searchfs(void)
397 int mac_check_vnode_select(void)
401 int mac_check_vnode_setattrlist(void)
405 int mac_check_vnode_setextattr(void)
409 int mac_check_vnode_setflags(void)
413 int mac_check_vnode_setmode(void)
417 int mac_check_vnode_setowner(void)
421 int mac_check_vnode_setutimes(void)
425 int mac_check_vnode_stat(void)
429 int mac_check_vnode_write(void)
433 int mac_cleanup_vnode(void)
437 int mac_copy_devfs_label(void)
441 int mac_copy_vnode_label(void)
445 int mac_create_cred(void)
449 int mac_create_devfs_device(void)
453 int mac_create_devfs_directory(void)
457 int mac_create_mount(void)
461 int mac_create_pipe(void)
465 int mac_create_posix_sem(void)
469 int mac_create_posix_shm(void)
473 int mac_create_proc0(void)
477 int mac_create_proc1(void)
481 int mac_create_vnode_extattr(void)
485 int mac_cred_label_alloc(void)
489 int mac_cred_label_free(void)
493 int mac_destroy_cred(void)
497 int mac_destroy_devfsdirent(void)
501 int mac_destroy_mount(void)
505 int mac_destroy_pipe(void)
509 int mac_destroy_posix_sem(void)
513 int mac_destroy_posix_shm(void)
517 int mac_destroy_proc(void)
521 int mac_execve_enter(void)
525 int mac_execve_transition(void)
529 int mac_execve_will_transition(void)
533 int mac_init_bsd(void)
537 int mac_init_cred(void)
541 int mac_init_devfsdirent(void)
545 int mac_init_mount(void)
549 int mac_init_pipe(void)
553 int mac_init_posix_sem(void)
557 int mac_init_posix_shm(void)
561 int mac_init_proc(void)
565 int mac_init_vnode(void)
569 int mac_lctx_label_alloc(void)
573 int mac_lctx_label_free(void)
577 int mac_proc_create_lctx(void)
581 int mac_proc_join_lctx(void)
585 int mac_proc_leave_lctx(void)
589 int mac_relabel_cred(void)
593 int mac_relabel_vnode(void)
597 int mac_update_devfsdirent(void)
601 int mac_update_vnode_extattr(void)
605 int mac_vnode_label_alloc(void)
609 int mac_vnode_label_free(void)
613 int vop_stdsetlabel_ea(void)
621 int mac_kalloc_noblock(void)
629 int mac_mbuf_alloc(void)
633 int mac_mbuf_free(void)
645 int sysctl__security_mac_children(void)
649 int mac_check_socket_accept(void)
653 int mac_check_socket_accepted(void)
657 int mac_check_socket_bind(void)
661 int mac_check_socket_connect(void)
665 int mac_check_socket_create(void)
669 int mac_check_socket_getsockopt(void)
673 int mac_check_socket_listen(void)
677 int mac_check_socket_receive(void)
681 int mac_check_socket_send(void)
685 int mac_check_socket_setsockopt(void)
689 int mac_fork_proc(void)
693 int mac_proc_check_suspend_resume(void)
697 int mac_set_enforce_proc(void)
701 #endif /* CONFIG_MACF */
704 int kau_will_audit(void)