12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130 |
- //
- // kpp.h
- // g0blin
- //
- // Created by Sticktron on 2017-12-26.
- // Copyright © 2017 xerub. All rights reserved.
- // Copyright © 2017 qwertyoruiop. All rights reserved.
- //
- #ifndef kpp_h
- #define kpp_h
- #include <dlfcn.h>
- #include <copyfile.h>
- #include <stdio.h>
- #include <spawn.h>
- #include <unistd.h>
- #include <mach/mach.h>
- #include <mach-o/dyld.h>
- #include <sys/stat.h>
- #include <sys/mount.h>
- #include <sys/utsname.h>
- #include <Foundation/Foundation.h>
- kern_return_t do_kpp(int nukesb, int uref, uint64_t kernbase, uint64_t slide, task_t tfp0);
- size_t kpp_kread(uint64_t where, void *p, size_t size);
- uint64_t kread_uint64(uint64_t where);
- uint32_t kread_uint32(uint64_t where);
- size_t kpp_kwrite(uint64_t where, const void *p, size_t size);
- size_t kwrite_uint64(uint64_t where, uint64_t value);
- size_t kwrite_uint32(uint64_t where, uint32_t value);
- void kx2(uint64_t fptr, uint64_t arg1, uint64_t arg2);
- uint32_t kx5(uint64_t fptr, uint64_t arg1, uint64_t arg2, uint64_t arg3, uint64_t arg4, uint64_t arg5);
- //------------------------------------------------------------------------------
- // From Yalu102
- //------------------------------------------------------------------------------
- //struct mac_policy_ops {
- // uint64_t mpo_audit_check_postselect;
- // uint64_t mpo_audit_check_preselect;
- // uint64_t mpo_bpfdesc_label_associate;
- // uint64_t mpo_bpfdesc_label_destroy;
- // uint64_t mpo_bpfdesc_label_init;
- // uint64_t mpo_bpfdesc_check_receive;
- // uint64_t mpo_cred_check_label_update_execve;
- // uint64_t mpo_cred_check_label_update;
- // uint64_t mpo_cred_check_visible;
- // uint64_t mpo_cred_label_associate_fork;
- // uint64_t mpo_cred_label_associate_kernel;
- // uint64_t mpo_cred_label_associate;
- // uint64_t mpo_cred_label_associate_user;
- // uint64_t mpo_cred_label_destroy;
- // uint64_t mpo_cred_label_externalize_audit;
- // uint64_t mpo_cred_label_externalize;
- // uint64_t mpo_cred_label_init;
- // uint64_t mpo_cred_label_internalize;
- // uint64_t mpo_cred_label_update_execve;
- // uint64_t mpo_cred_label_update;
- // uint64_t mpo_devfs_label_associate_device;
- // uint64_t mpo_devfs_label_associate_directory;
- // uint64_t mpo_devfs_label_copy;
- // uint64_t mpo_devfs_label_destroy;
- // uint64_t mpo_devfs_label_init;
- // uint64_t mpo_devfs_label_update;
- // uint64_t mpo_file_check_change_offset;
- // uint64_t mpo_file_check_create;
- // uint64_t mpo_file_check_dup;
- // uint64_t mpo_file_check_fcntl;
- // uint64_t mpo_file_check_get_offset;
- // uint64_t mpo_file_check_get;
- // uint64_t mpo_file_check_inherit;
- // uint64_t mpo_file_check_ioctl;
- // uint64_t mpo_file_check_lock;
- // uint64_t mpo_file_check_mmap_downgrade;
- // uint64_t mpo_file_check_mmap;
- // uint64_t mpo_file_check_receive;
- // uint64_t mpo_file_check_set;
- // uint64_t mpo_file_label_init;
- // uint64_t mpo_file_label_destroy;
- // uint64_t mpo_file_label_associate;
- // uint64_t mpo_ifnet_check_label_update;
- // uint64_t mpo_ifnet_check_transmit;
- // uint64_t mpo_ifnet_label_associate;
- // uint64_t mpo_ifnet_label_copy;
- // uint64_t mpo_ifnet_label_destroy;
- // uint64_t mpo_ifnet_label_externalize;
- // uint64_t mpo_ifnet_label_init;
- // uint64_t mpo_ifnet_label_internalize;
- // uint64_t mpo_ifnet_label_update;
- // uint64_t mpo_ifnet_label_recycle;
- // uint64_t mpo_inpcb_check_deliver;
- // uint64_t mpo_inpcb_label_associate;
- // uint64_t mpo_inpcb_label_destroy;
- // uint64_t mpo_inpcb_label_init;
- // uint64_t mpo_inpcb_label_recycle;
- // uint64_t mpo_inpcb_label_update;
- // uint64_t mpo_iokit_check_device;
- // uint64_t mpo_ipq_label_associate;
- // uint64_t mpo_ipq_label_compare;
- // uint64_t mpo_ipq_label_destroy;
- // uint64_t mpo_ipq_label_init;
- // uint64_t mpo_ipq_label_update;
- // uint64_t mpo_file_check_library_validation;
- // uint64_t mpo_vnode_notify_setacl;
- // uint64_t mpo_vnode_notify_setattrlist;
- // uint64_t mpo_vnode_notify_setextattr;
- // uint64_t mpo_vnode_notify_setflags;
- // uint64_t mpo_vnode_notify_setmode;
- // uint64_t mpo_vnode_notify_setowner;
- // uint64_t mpo_vnode_notify_setutimes;
- // uint64_t mpo_vnode_notify_truncate;
- // uint64_t mpo_mbuf_label_associate_bpfdesc;
- // uint64_t mpo_mbuf_label_associate_ifnet;
- // uint64_t mpo_mbuf_label_associate_inpcb;
- // uint64_t mpo_mbuf_label_associate_ipq;
- // uint64_t mpo_mbuf_label_associate_linklayer;
- // uint64_t mpo_mbuf_label_associate_multicast_encap;
- // uint64_t mpo_mbuf_label_associate_netlayer;
- // uint64_t mpo_mbuf_label_associate_socket;
- // uint64_t mpo_mbuf_label_copy;
- // uint64_t mpo_mbuf_label_destroy;
- // uint64_t mpo_mbuf_label_init;
- // uint64_t mpo_mount_check_fsctl;
- // uint64_t mpo_mount_check_getattr;
- // uint64_t mpo_mount_check_label_update;
- // uint64_t mpo_mount_check_mount;
- // uint64_t mpo_mount_check_remount;
- // uint64_t mpo_mount_check_setattr;
- // uint64_t mpo_mount_check_stat;
- // uint64_t mpo_mount_check_umount;
- // uint64_t mpo_mount_label_associate;
- // uint64_t mpo_mount_label_destroy;
- // uint64_t mpo_mount_label_externalize;
- // uint64_t mpo_mount_label_init;
- // uint64_t mpo_mount_label_internalize;
- // uint64_t mpo_netinet_fragment;
- // uint64_t mpo_netinet_icmp_reply;
- // uint64_t mpo_netinet_tcp_reply;
- // uint64_t mpo_pipe_check_ioctl;
- // uint64_t mpo_pipe_check_kqfilter;
- // uint64_t mpo_pipe_check_label_update;
- // uint64_t mpo_pipe_check_read;
- // uint64_t mpo_pipe_check_select;
- // uint64_t mpo_pipe_check_stat;
- // uint64_t mpo_pipe_check_write;
- // uint64_t mpo_pipe_label_associate;
- // uint64_t mpo_pipe_label_copy;
- // uint64_t mpo_pipe_label_destroy;
- // uint64_t mpo_pipe_label_externalize;
- // uint64_t mpo_pipe_label_init;
- // uint64_t mpo_pipe_label_internalize;
- // uint64_t mpo_pipe_label_update;
- // uint64_t mpo_policy_destroy;
- // uint64_t mpo_policy_init;
- // uint64_t mpo_policy_initbsd;
- // uint64_t mpo_policy_syscall;
- // uint64_t mpo_system_check_sysctlbyname;
- // uint64_t mpo_proc_check_inherit_ipc_ports;
- // uint64_t mpo_vnode_check_rename;
- // uint64_t mpo_kext_check_query;
- // uint64_t mpo_iokit_check_nvram_get;
- // uint64_t mpo_iokit_check_nvram_set;
- // uint64_t mpo_iokit_check_nvram_delete;
- // uint64_t mpo_proc_check_expose_task;
- // uint64_t mpo_proc_check_set_host_special_port;
- // uint64_t mpo_proc_check_set_host_exception_port;
- // uint64_t mpo_exc_action_check_exception_send;
- // uint64_t mpo_exc_action_label_associate;
- // uint64_t mpo_exc_action_label_copy;
- // uint64_t mpo_exc_action_label_destroy;
- // uint64_t mpo_exc_action_label_init;
- // uint64_t mpo_exc_action_label_update;
- // uint64_t mpo_reserved1;
- // uint64_t mpo_reserved2;
- // uint64_t mpo_reserved3;
- // uint64_t mpo_reserved4;
- // uint64_t mpo_reserved5;
- // uint64_t mpo_reserved6;
- // uint64_t mpo_posixsem_check_create;
- // uint64_t mpo_posixsem_check_open;
- // uint64_t mpo_posixsem_check_post;
- // uint64_t mpo_posixsem_check_unlink;
- // uint64_t mpo_posixsem_check_wait;
- // uint64_t mpo_posixsem_label_associate;
- // uint64_t mpo_posixsem_label_destroy;
- // uint64_t mpo_posixsem_label_init;
- // uint64_t mpo_posixshm_check_create;
- // uint64_t mpo_posixshm_check_mmap;
- // uint64_t mpo_posixshm_check_open;
- // uint64_t mpo_posixshm_check_stat;
- // uint64_t mpo_posixshm_check_truncate;
- // uint64_t mpo_posixshm_check_unlink;
- // uint64_t mpo_posixshm_label_associate;
- // uint64_t mpo_posixshm_label_destroy;
- // uint64_t mpo_posixshm_label_init;
- // uint64_t mpo_proc_check_debug;
- // uint64_t mpo_proc_check_fork;
- // uint64_t mpo_proc_check_get_task_name;
- // uint64_t mpo_proc_check_get_task;
- // uint64_t mpo_proc_check_getaudit;
- // uint64_t mpo_proc_check_getauid;
- // uint64_t mpo_proc_check_getlcid;
- // uint64_t mpo_proc_check_mprotect;
- // uint64_t mpo_proc_check_sched;
- // uint64_t mpo_proc_check_setaudit;
- // uint64_t mpo_proc_check_setauid;
- // uint64_t mpo_proc_check_setlcid;
- // uint64_t mpo_proc_check_signal;
- // uint64_t mpo_proc_check_wait;
- // uint64_t mpo_proc_label_destroy;
- // uint64_t mpo_proc_label_init;
- // uint64_t mpo_socket_check_accept;
- // uint64_t mpo_socket_check_accepted;
- // uint64_t mpo_socket_check_bind;
- // uint64_t mpo_socket_check_connect;
- // uint64_t mpo_socket_check_create;
- // uint64_t mpo_socket_check_deliver;
- // uint64_t mpo_socket_check_kqfilter;
- // uint64_t mpo_socket_check_label_update;
- // uint64_t mpo_socket_check_listen;
- // uint64_t mpo_socket_check_receive;
- // uint64_t mpo_socket_check_received;
- // uint64_t mpo_socket_check_select;
- // uint64_t mpo_socket_check_send;
- // uint64_t mpo_socket_check_stat;
- // uint64_t mpo_socket_check_setsockopt;
- // uint64_t mpo_socket_check_getsockopt;
- // uint64_t mpo_socket_label_associate_accept;
- // uint64_t mpo_socket_label_associate;
- // uint64_t mpo_socket_label_copy;
- // uint64_t mpo_socket_label_destroy;
- // uint64_t mpo_socket_label_externalize;
- // uint64_t mpo_socket_label_init;
- // uint64_t mpo_socket_label_internalize;
- // uint64_t mpo_socket_label_update;
- // uint64_t mpo_socketpeer_label_associate_mbuf;
- // uint64_t mpo_socketpeer_label_associate_socket;
- // uint64_t mpo_socketpeer_label_destroy;
- // uint64_t mpo_socketpeer_label_externalize;
- // uint64_t mpo_socketpeer_label_init;
- // uint64_t mpo_system_check_acct;
- // uint64_t mpo_system_check_audit;
- // uint64_t mpo_system_check_auditctl;
- // uint64_t mpo_system_check_auditon;
- // uint64_t mpo_system_check_host_priv;
- // uint64_t mpo_system_check_nfsd;
- // uint64_t mpo_system_check_reboot;
- // uint64_t mpo_system_check_settime;
- // uint64_t mpo_system_check_swapoff;
- // uint64_t mpo_system_check_swapon;
- // uint64_t mpo_reserved7;
- // uint64_t mpo_sysvmsg_label_associate;
- // uint64_t mpo_sysvmsg_label_destroy;
- // uint64_t mpo_sysvmsg_label_init;
- // uint64_t mpo_sysvmsg_label_recycle;
- // uint64_t mpo_sysvmsq_check_enqueue;
- // uint64_t mpo_sysvmsq_check_msgrcv;
- // uint64_t mpo_sysvmsq_check_msgrmid;
- // uint64_t mpo_sysvmsq_check_msqctl;
- // uint64_t mpo_sysvmsq_check_msqget;
- // uint64_t mpo_sysvmsq_check_msqrcv;
- // uint64_t mpo_sysvmsq_check_msqsnd;
- // uint64_t mpo_sysvmsq_label_associate;
- // uint64_t mpo_sysvmsq_label_destroy;
- // uint64_t mpo_sysvmsq_label_init;
- // uint64_t mpo_sysvmsq_label_recycle;
- // uint64_t mpo_sysvsem_check_semctl;
- // uint64_t mpo_sysvsem_check_semget;
- // uint64_t mpo_sysvsem_check_semop;
- // uint64_t mpo_sysvsem_label_associate;
- // uint64_t mpo_sysvsem_label_destroy;
- // uint64_t mpo_sysvsem_label_init;
- // uint64_t mpo_sysvsem_label_recycle;
- // uint64_t mpo_sysvshm_check_shmat;
- // uint64_t mpo_sysvshm_check_shmctl;
- // uint64_t mpo_sysvshm_check_shmdt;
- // uint64_t mpo_sysvshm_check_shmget;
- // uint64_t mpo_sysvshm_label_associate;
- // uint64_t mpo_sysvshm_label_destroy;
- // uint64_t mpo_sysvshm_label_init;
- // uint64_t mpo_sysvshm_label_recycle;
- // uint64_t mpo_reserved8;
- // uint64_t mpo_reserved9;
- // uint64_t mpo_vnode_check_getattr;
- // uint64_t mpo_mount_check_snapshot_create;
- // uint64_t mpo_mount_check_snapshot_delete;
- // uint64_t mpo_vnode_check_clone;
- // uint64_t mpo_proc_check_get_cs_info;
- // uint64_t mpo_proc_check_set_cs_info;
- // uint64_t mpo_iokit_check_hid_control;
- // uint64_t mpo_vnode_check_access;
- // uint64_t mpo_vnode_check_chdir;
- // uint64_t mpo_vnode_check_chroot;
- // uint64_t mpo_vnode_check_create;
- // uint64_t mpo_vnode_check_deleteextattr;
- // uint64_t mpo_vnode_check_exchangedata;
- // uint64_t mpo_vnode_check_exec;
- // uint64_t mpo_vnode_check_getattrlist;
- // uint64_t mpo_vnode_check_getextattr;
- // uint64_t mpo_vnode_check_ioctl;
- // uint64_t mpo_vnode_check_kqfilter;
- // uint64_t mpo_vnode_check_label_update;
- // uint64_t mpo_vnode_check_link;
- // uint64_t mpo_vnode_check_listextattr;
- // uint64_t mpo_vnode_check_lookup;
- // uint64_t mpo_vnode_check_open;
- // uint64_t mpo_vnode_check_read;
- // uint64_t mpo_vnode_check_readdir;
- // uint64_t mpo_vnode_check_readlink;
- // uint64_t mpo_vnode_check_rename_from;
- // uint64_t mpo_vnode_check_rename_to;
- // uint64_t mpo_vnode_check_revoke;
- // uint64_t mpo_vnode_check_select;
- // uint64_t mpo_vnode_check_setattrlist;
- // uint64_t mpo_vnode_check_setextattr;
- // uint64_t mpo_vnode_check_setflags;
- // uint64_t mpo_vnode_check_setmode;
- // uint64_t mpo_vnode_check_setowner;
- // uint64_t mpo_vnode_check_setutimes;
- // uint64_t mpo_vnode_check_stat;
- // uint64_t mpo_vnode_check_truncate;
- // uint64_t mpo_vnode_check_unlink;
- // uint64_t mpo_vnode_check_write;
- // uint64_t mpo_vnode_label_associate_devfs;
- // uint64_t mpo_vnode_label_associate_extattr;
- // uint64_t mpo_vnode_label_associate_file;
- // uint64_t mpo_vnode_label_associate_pipe;
- // uint64_t mpo_vnode_label_associate_posixsem;
- // uint64_t mpo_vnode_label_associate_posixshm;
- // uint64_t mpo_vnode_label_associate_singlelabel;
- // uint64_t mpo_vnode_label_associate_socket;
- // uint64_t mpo_vnode_label_copy;
- // uint64_t mpo_vnode_label_destroy;
- // uint64_t mpo_vnode_label_externalize_audit;
- // uint64_t mpo_vnode_label_externalize;
- // uint64_t mpo_vnode_label_init;
- // uint64_t mpo_vnode_label_internalize;
- // uint64_t mpo_vnode_label_recycle;
- // uint64_t mpo_vnode_label_store;
- // uint64_t mpo_vnode_label_update_extattr;
- // uint64_t mpo_vnode_label_update;
- // uint64_t mpo_vnode_notify_create;
- // uint64_t mpo_vnode_check_signature;
- // uint64_t mpo_vnode_check_uipc_bind;
- // uint64_t mpo_vnode_check_uipc_connect;
- // uint64_t mpo_proc_check_run_cs_invalid;
- // uint64_t mpo_proc_check_suspend_resume;
- // uint64_t mpo_thread_userret;
- // uint64_t mpo_iokit_check_set_properties;
- // uint64_t mpo_system_check_chud;
- // uint64_t mpo_vnode_check_searchfs;
- // uint64_t mpo_priv_check;
- // uint64_t mpo_priv_grant;
- // uint64_t mpo_proc_check_map_anon;
- // uint64_t mpo_vnode_check_fsgetpath;
- // uint64_t mpo_iokit_check_open;
- // uint64_t mpo_proc_check_ledger;
- // uint64_t mpo_vnode_notify_rename;
- // uint64_t mpo_vnode_check_setacl;
- // uint64_t mpo_vnode_notify_deleteextattr;
- // uint64_t mpo_system_check_kas_info;
- // uint64_t mpo_proc_check_cpumon;
- // uint64_t mpo_vnode_notify_open;
- // uint64_t mpo_system_check_info;
- // uint64_t mpo_pty_notify_grant;
- // uint64_t mpo_pty_notify_close;
- // uint64_t mpo_vnode_find_sigs;
- // uint64_t mpo_kext_check_load;
- // uint64_t mpo_kext_check_unload;
- // uint64_t mpo_proc_check_proc_info;
- // uint64_t mpo_vnode_notify_link;
- // uint64_t mpo_iokit_check_filter_properties;
- // uint64_t mpo_iokit_check_get_property;
- //};
- //------------------------------------------------------------------------------
- // From Tihmstar
- //------------------------------------------------------------------------------
- /*
- struct mac_policy_ops{
- uint64_t mpo_audit_check_postselect;
- uint64_t mpo_audit_check_preselect;
-
- uint64_t mpo_bpfdesc_label_associate;
- uint64_t mpo_bpfdesc_label_destroy;
- uint64_t mpo_bpfdesc_label_init;
- uint64_t mpo_bpfdesc_check_receive;
-
- uint64_t mpo_cred_check_label_update_execve;
- uint64_t mpo_cred_check_label_update;
- uint64_t mpo_cred_check_visible;
-
- uint64_t mpo_cred_label_associate_fork;
- uint64_t mpo_cred_label_associate_kernel;
- uint64_t mpo_cred_label_associate;
- uint64_t mpo_cred_label_associate_user;
- uint64_t mpo_cred_label_destroy;
- uint64_t mpo_cred_label_externalize_audit;
- uint64_t mpo_cred_label_externalize;
- uint64_t mpo_cred_label_init;
- uint64_t mpo_cred_label_internalize;
- uint64_t mpo_cred_label_update_execve;
- uint64_t mpo_cred_label_update;
-
- uint64_t mpo_devfs_label_associate_device;
- uint64_t mpo_devfs_label_associate_directory;
- uint64_t mpo_devfs_label_copy;
- uint64_t mpo_devfs_label_destroy;
- uint64_t mpo_devfs_label_init;
- uint64_t mpo_devfs_label_update;
-
- uint64_t mpo_file_check_change_offset;
- uint64_t mpo_file_check_create;
- uint64_t mpo_file_check_dup;
- uint64_t mpo_file_check_fcntl;
- uint64_t mpo_file_check_get_offset;
- uint64_t mpo_file_check_get;
- uint64_t mpo_file_check_inherit;
- uint64_t mpo_file_check_ioctl;
- uint64_t mpo_file_check_library_validation;
- uint64_t mpo_file_check_lock;
- uint64_t mpo_file_check_mmap_downgrade;
- uint64_t mpo_file_check_mmap;
- uint64_t mpo_file_check_receive;
- uint64_t mpo_file_check_set;
-
- uint64_t mpo_file_label_init;
- uint64_t mpo_file_label_destroy;
- uint64_t mpo_file_label_associate;
-
- uint64_t mpo_ifnet_check_label_update;
- uint64_t mpo_ifnet_check_transmit;
-
- uint64_t mpo_ifnet_label_associate;
- uint64_t mpo_ifnet_label_copy;
- uint64_t mpo_ifnet_label_destroy;
- uint64_t mpo_ifnet_label_externalize;
- uint64_t mpo_ifnet_label_init;
- uint64_t mpo_ifnet_label_internalize;
- uint64_t mpo_ifnet_label_update;
- uint64_t mpo_ifnet_label_recycle;
-
- uint64_t mpo_inpcb_check_deliver;
-
- uint64_t mpo_inpcb_label_associate;
- uint64_t mpo_inpcb_label_destroy;
- uint64_t mpo_inpcb_label_init;
- uint64_t mpo_inpcb_label_recycle;
- uint64_t mpo_inpcb_label_update;
-
- uint64_t mpo_iokit_check_device;
-
- uint64_t mpo_ipq_label_associate;
- uint64_t mpo_ipq_label_compare;
- uint64_t mpo_ipq_label_destroy;
- uint64_t mpo_ipq_label_init;
- uint64_t mpo_ipq_label_update;
-
- uint64_t mpo_mbuf_label_associate_bpfdesc;
- uint64_t mpo_mbuf_label_associate_ifnet;
- uint64_t mpo_mbuf_label_associate_inpcb;
- uint64_t mpo_mbuf_label_associate_ipq;
- uint64_t mpo_mbuf_label_associate_linklayer;
- uint64_t mpo_mbuf_label_associate_multicast_encap;
- uint64_t mpo_mbuf_label_associate_netlayer;
- uint64_t mpo_mbuf_label_associate_socket;
- uint64_t mpo_mbuf_label_copy;
- uint64_t mpo_mbuf_label_destroy;
- uint64_t mpo_mbuf_label_init;
-
- uint64_t mpo_mount_check_fsctl;
- uint64_t mpo_mount_check_getattr;
- uint64_t mpo_mount_check_label_update;
- uint64_t mpo_mount_check_mount;
- uint64_t mpo_mount_check_remount;
- uint64_t mpo_mount_check_setattr;
- uint64_t mpo_mount_check_stat;
- uint64_t mpo_mount_check_umount;
- uint64_t mpo_mount_label_associate;
- uint64_t mpo_mount_label_destroy;
- uint64_t mpo_mount_label_externalize;
- uint64_t mpo_mount_label_init;
- uint64_t mpo_mount_label_internalize;
-
- uint64_t mpo_mount_check_snapshot_create;
- uint64_t mpo_mount_check_snapshot_delete;
- uint64_t mpo_mount_check_snapshot_revert;
-
- uint64_t mpo_netinet_fragment;
- uint64_t mpo_netinet_icmp_reply;
- uint64_t mpo_netinet_tcp_reply;
-
- uint64_t mpo_pipe_check_ioctl;
- uint64_t mpo_pipe_check_kqfilter;
- uint64_t mpo_pipe_check_label_update;
- uint64_t mpo_pipe_check_read;
- uint64_t mpo_pipe_check_select;
- uint64_t mpo_pipe_check_stat;
- uint64_t mpo_pipe_check_write;
- uint64_t mpo_pipe_label_associate;
- uint64_t mpo_pipe_label_copy;
- uint64_t mpo_pipe_label_destroy;
- uint64_t mpo_pipe_label_externalize;
- uint64_t mpo_pipe_label_init;
- uint64_t mpo_pipe_label_internalize;
- uint64_t mpo_pipe_label_update;
-
- uint64_t mpo_policy_destroy;
- uint64_t mpo_policy_init;
- uint64_t mpo_policy_initbsd;
- uint64_t mpo_policy_syscall;
-
- uint64_t mpo_kext_check_load;
- uint64_t mpo_kext_check_query;
- uint64_t mpo_kext_check_unload;
-
- uint64_t mpo_iokit_check_filter_properties;
- uint64_t mpo_iokit_check_get_property;
- uint64_t mpo_iokit_check_hid_control;
- uint64_t mpo_iokit_check_nvram_get;
- uint64_t mpo_iokit_check_nvram_set;
- uint64_t mpo_iokit_check_nvram_delete;
- uint64_t mpo_iokit_check_open;
- uint64_t mpo_iokit_check_set_properties;
- uint64_t mpo_exc_action_check_exception_send;
-
- uint64_t mpo_exc_action_label_associate;
- uint64_t mpo_exc_action_label_copy;
- uint64_t mpo_exc_action_label_destroy;
- uint64_t mpo_exc_action_label_init;
- uint64_t mpo_exc_action_label_update;
-
- uint64_t mpo_reserved_hook;
- uint64_t mpo_reserved_hook_t1;
- uint64_t mpo_reserved_hook_t2;
- uint64_t mpo_reserved_hook_t3;
- uint64_t mpo_reserved_hook_t4;
- uint64_t mpo_reserved_hook_t5;
-
- uint64_t mpo_posixsem_check_create;
- uint64_t mpo_posixsem_check_open;
- uint64_t mpo_posixsem_check_post;
- uint64_t mpo_posixsem_check_unlink;
- uint64_t mpo_posixsem_check_wait;
-
- uint64_t mpo_posixsem_label_associate;
- uint64_t mpo_posixsem_label_destroy;
- uint64_t mpo_posixsem_label_init;
-
- uint64_t mpo_posixshm_check_create;
- uint64_t mpo_posixshm_check_mmap;
- uint64_t mpo_posixshm_check_open;
- uint64_t mpo_posixshm_check_stat;
- uint64_t mpo_posixshm_check_truncate;
- uint64_t mpo_posixshm_check_unlink;
-
- uint64_t mpo_posixshm_label_associate;
- uint64_t mpo_posixshm_label_destroy;
- uint64_t mpo_posixshm_label_init;
-
- uint64_t mpo_priv_check;
- uint64_t mpo_priv_grant;
-
- uint64_t mpo_pty_notify_grant;
- uint64_t mpo_pty_notify_close;
-
- uint64_t mpo_proc_check_cpumon;
- uint64_t mpo_proc_check_debug;
- uint64_t mpo_proc_check_expose_task;
- uint64_t mpo_proc_check_fork;
- uint64_t mpo_proc_check_get_task_name;
- uint64_t mpo_proc_check_get_task;
- uint64_t mpo_proc_check_getaudit;
- uint64_t mpo_proc_check_getauid;
- uint64_t mpo_proc_check_getlcid;
- uint64_t mpo_proc_check_inherit_ipc_ports;
- uint64_t mpo_proc_check_ledger;
- uint64_t mpo_proc_check_map_anon;
- uint64_t mpo_proc_check_mprotect;
- uint64_t mpo_proc_check_proc_info;
- uint64_t mpo_proc_check_run_cs_invalid;
- uint64_t mpo_proc_check_sched;
- uint64_t mpo_proc_check_setaudit;
- uint64_t mpo_proc_check_setauid;
- uint64_t mpo_proc_check_setlcid;
- uint64_t mpo_proc_check_signal;
- uint64_t mpo_proc_check_suspend_resume;
- uint64_t mpo_proc_check_wait;
-
- uint64_t mpo_proc_check_get_cs_info;
-
- uint64_t mpo_proc_check_set_cs_info;
- uint64_t mpo_proc_check_set_host_special_port;
- uint64_t mpo_proc_check_set_host_exception_port;
-
- uint64_t mpo_proc_label_destroy;
- uint64_t mpo_proc_label_init;
-
- uint64_t mpo_reserved_hook_t6;
- uint64_t mpo_reserved_hook_t7;
-
- uint64_t mpo_socket_check_accept;
- uint64_t mpo_socket_check_accepted;
- uint64_t mpo_socket_check_bind;
- uint64_t mpo_socket_check_connect;
- uint64_t mpo_socket_check_create;
- uint64_t mpo_socket_check_deliver;
- uint64_t mpo_socket_check_kqfilter;
- uint64_t mpo_socket_check_label_update;
- uint64_t mpo_socket_check_listen;
- uint64_t mpo_socket_check_receive;
- uint64_t mpo_socket_check_received;
- uint64_t mpo_socket_check_select;
- uint64_t mpo_socket_check_send;
- uint64_t mpo_socket_check_stat;
- uint64_t mpo_socket_check_setsockopt;
- uint64_t mpo_socket_check_getsockopt;
- uint64_t mpo_socket_label_associate_accept;
- uint64_t mpo_socket_label_associate;
- uint64_t mpo_socket_label_copy;
- uint64_t mpo_socket_label_destroy;
- uint64_t mpo_socket_label_externalize;
- uint64_t mpo_socket_label_init;
- uint64_t mpo_socket_label_internalize;
- uint64_t mpo_socket_label_update;
- uint64_t mpo_socketpeer_label_associate_mbuf;
- uint64_t mpo_socketpeer_label_associate_socket;
- uint64_t mpo_socketpeer_label_destroy;
- uint64_t mpo_socketpeer_label_externalize;
- uint64_t mpo_socketpeer_label_init;
- uint64_t mpo_system_check_acct;
- uint64_t mpo_system_check_audit;
- uint64_t mpo_system_check_auditctl;
- uint64_t mpo_system_check_auditon;
- uint64_t mpo_system_check_chud;
- uint64_t mpo_system_check_host_priv;
- uint64_t mpo_system_check_info;
- uint64_t mpo_system_check_kas_info;
- uint64_t mpo_system_check_nfsd;
- uint64_t mpo_system_check_reboot;
- uint64_t mpo_system_check_settime;
- uint64_t mpo_system_check_sysctlbyname;
- uint64_t mpo_system_check_swapoff;
- uint64_t mpo_system_check_swapon;
-
- uint64_t mpo_sysvmsg_label_associate;
- uint64_t mpo_sysvmsg_label_destroy;
- uint64_t mpo_sysvmsg_label_init;
- uint64_t mpo_sysvmsg_label_recycle;
-
- uint64_t mpo_sysvmsq_check_enqueue;
- uint64_t mpo_sysvmsq_check_msgrcv;
- uint64_t mpo_sysvmsq_check_msgrmid;
- uint64_t mpo_sysvmsq_check_msqctl;
- uint64_t mpo_sysvmsq_check_msqget;
- uint64_t mpo_sysvmsq_check_msqrcv;
- uint64_t mpo_sysvmsq_check_msqsnd;
- uint64_t mpo_sysvmsq_label_associate;
- uint64_t mpo_sysvmsq_label_destroy;
- uint64_t mpo_sysvmsq_label_init;
- uint64_t mpo_sysvmsq_label_recycle;
-
- uint64_t mpo_sysvsem_check_semctl;
- uint64_t mpo_sysvsem_check_semget;
- uint64_t mpo_sysvsem_check_semop;
-
- uint64_t mpo_sysvsem_label_associate;
- uint64_t mpo_sysvsem_label_destroy;
- uint64_t mpo_sysvsem_label_init;
- uint64_t mpo_sysvsem_label_recycle;
-
- uint64_t mpo_sysvshm_check_shmat;
- uint64_t mpo_sysvshm_check_shmctl;
- uint64_t mpo_sysvshm_check_shmdt;
- uint64_t mpo_sysvshm_check_shmget;
-
- uint64_t mpo_sysvshm_label_associate;
- uint64_t mpo_sysvshm_label_destroy;
- uint64_t mpo_sysvshm_label_init;
- uint64_t mpo_sysvshm_label_recycle;
-
- uint64_t mpo_thread_userret;
- uint64_t mpo_vnode_check_access;
- uint64_t mpo_vnode_check_chdir;
- uint64_t mpo_vnode_check_chroot;
- uint64_t mpo_vnode_check_clone;
- uint64_t mpo_vnode_check_create;
- uint64_t mpo_vnode_check_deleteextattr;
- uint64_t mpo_vnode_check_exchangedata;
- uint64_t mpo_vnode_check_exec;
- uint64_t mpo_vnode_check_fsgetpath;
- uint64_t mpo_vnode_check_getattr;
- uint64_t mpo_vnode_check_getattrlist;
- uint64_t mpo_vnode_check_getextattr;
- uint64_t mpo_vnode_check_ioctl;
- uint64_t mpo_vnode_check_kqfilter;
- uint64_t mpo_vnode_check_label_update;
- uint64_t mpo_vnode_check_link;
- uint64_t mpo_vnode_check_listextattr;
- uint64_t mpo_vnode_check_lookup;
- uint64_t mpo_vnode_check_open;
- uint64_t mpo_vnode_check_read;
- uint64_t mpo_vnode_check_readdir;
- uint64_t mpo_vnode_check_readlink;
- uint64_t mpo_vnode_check_rename;
- uint64_t mpo_vnode_check_rename_from;
- uint64_t mpo_vnode_check_rename_to;
- uint64_t mpo_vnode_check_revoke;
- uint64_t mpo_vnode_check_searchfs;
- uint64_t mpo_vnode_check_select;
- uint64_t mpo_vnode_check_setacl;
- uint64_t mpo_vnode_check_setattrlist;
- uint64_t mpo_vnode_check_setextattr;
- uint64_t mpo_vnode_check_setflags;
- uint64_t mpo_vnode_check_setmode;
- uint64_t mpo_vnode_check_setowner;
- uint64_t mpo_vnode_check_setutimes;
- uint64_t mpo_vnode_check_signature;
- uint64_t mpo_vnode_check_stat;
- uint64_t mpo_vnode_check_truncate;
- uint64_t mpo_vnode_check_uipc_bind;
- uint64_t mpo_vnode_check_uipc_connect;
- uint64_t mpo_vnode_check_unlink;
- uint64_t mpo_vnode_check_write;
-
- uint64_t mpo_vnode_find_sigs;
-
- uint64_t mpo_vnode_label_associate_devfs;
- uint64_t mpo_vnode_label_associate_extattr;
- uint64_t mpo_vnode_label_associate_file;
- uint64_t mpo_vnode_label_associate_pipe;
- uint64_t mpo_vnode_label_associate_posixsem;
- uint64_t mpo_vnode_label_associate_posixshm;
- uint64_t mpo_vnode_label_associate_singlelabel;
- uint64_t mpo_vnode_label_associate_socket;
- uint64_t mpo_vnode_label_copy;
- uint64_t mpo_vnode_label_destroy;
- uint64_t mpo_vnode_label_externalize_audit;
- uint64_t mpo_vnode_label_externalize;
- uint64_t mpo_vnode_label_init;
- uint64_t mpo_vnode_label_internalize;
- uint64_t mpo_vnode_label_recycle;
- uint64_t mpo_vnode_label_store;
- uint64_t mpo_vnode_label_update_extattr;
- uint64_t mpo_vnode_label_update;
-
- uint64_t mpo_vnode_notify_create;
- uint64_t mpo_vnode_notify_deleteextattr;
- uint64_t mpo_vnode_notify_link;
- uint64_t mpo_vnode_notify_open;
- uint64_t mpo_vnode_notify_rename;
- uint64_t mpo_vnode_notify_setacl;
- uint64_t mpo_vnode_notify_setattrlist;
- uint64_t mpo_vnode_notify_setextattr;
- uint64_t mpo_vnode_notify_setflags;
- uint64_t mpo_vnode_notify_setmode;
- uint64_t mpo_vnode_notify_setowner;
- uint64_t mpo_vnode_notify_setutimes;
- uint64_t mpo_vnode_notify_truncate;
- };
- */
- struct mac_policy_ops {
- uint64_t mpo_audit_check_postselect;
- uint64_t mpo_audit_check_preselect;
- uint64_t mpo_bpfdesc_label_associate;
- uint64_t mpo_bpfdesc_label_destroy;
- uint64_t mpo_bpfdesc_label_init;
- uint64_t mpo_bpfdesc_check_receive;
- uint64_t mpo_cred_check_label_update_execve;
- uint64_t mpo_cred_check_label_update;
- uint64_t mpo_cred_check_visible;
- uint64_t mpo_cred_label_associate_fork;
- uint64_t mpo_cred_label_associate_kernel;
- uint64_t mpo_cred_label_associate;
- uint64_t mpo_cred_label_associate_user;
- uint64_t mpo_cred_label_destroy;
- uint64_t mpo_cred_label_externalize_audit;
- uint64_t mpo_cred_label_externalize;
- uint64_t mpo_cred_label_init;
- uint64_t mpo_cred_label_internalize;
- uint64_t mpo_cred_label_update_execve;
- uint64_t mpo_cred_label_update;
- uint64_t mpo_devfs_label_associate_device;
- uint64_t mpo_devfs_label_associate_directory;
- uint64_t mpo_devfs_label_copy;
- uint64_t mpo_devfs_label_destroy;
- uint64_t mpo_devfs_label_init;
- uint64_t mpo_devfs_label_update;
- uint64_t mpo_file_check_change_offset;
- uint64_t mpo_file_check_create;
- uint64_t mpo_file_check_dup;
- uint64_t mpo_file_check_fcntl;
- uint64_t mpo_file_check_get_offset;
- uint64_t mpo_file_check_get;
- uint64_t mpo_file_check_inherit;
- uint64_t mpo_file_check_ioctl;
- uint64_t mpo_file_check_lock;
- uint64_t mpo_file_check_mmap_downgrade;
- uint64_t mpo_file_check_mmap;
- uint64_t mpo_file_check_receive;
- uint64_t mpo_file_check_set;
- uint64_t mpo_file_label_init;
- uint64_t mpo_file_label_destroy;
- uint64_t mpo_file_label_associate;
- uint64_t mpo_ifnet_check_label_update;
- uint64_t mpo_ifnet_check_transmit;
- uint64_t mpo_ifnet_label_associate;
- uint64_t mpo_ifnet_label_copy;
- uint64_t mpo_ifnet_label_destroy;
- uint64_t mpo_ifnet_label_externalize;
- uint64_t mpo_ifnet_label_init;
- uint64_t mpo_ifnet_label_internalize;
- uint64_t mpo_ifnet_label_update;
- uint64_t mpo_ifnet_label_recycle;
- uint64_t mpo_inpcb_check_deliver;
- uint64_t mpo_inpcb_label_associate;
- uint64_t mpo_inpcb_label_destroy;
- uint64_t mpo_inpcb_label_init;
- uint64_t mpo_inpcb_label_recycle;
- uint64_t mpo_inpcb_label_update;
- uint64_t mpo_iokit_check_device;
- uint64_t mpo_ipq_label_associate;
- uint64_t mpo_ipq_label_compare;
- uint64_t mpo_ipq_label_destroy;
- uint64_t mpo_ipq_label_init;
- uint64_t mpo_ipq_label_update;
- uint64_t mpo_file_check_library_validation;
- uint64_t mpo_vnode_notify_setacl;
- uint64_t mpo_vnode_notify_setattrlist;
- uint64_t mpo_vnode_notify_setextattr;
- uint64_t mpo_vnode_notify_setflags;
- uint64_t mpo_vnode_notify_setmode;
- uint64_t mpo_vnode_notify_setowner;
- uint64_t mpo_vnode_notify_setutimes;
- uint64_t mpo_vnode_notify_truncate;
- uint64_t mpo_mbuf_label_associate_bpfdesc;
- uint64_t mpo_mbuf_label_associate_ifnet;
- uint64_t mpo_mbuf_label_associate_inpcb;
- uint64_t mpo_mbuf_label_associate_ipq;
- uint64_t mpo_mbuf_label_associate_linklayer;
- uint64_t mpo_mbuf_label_associate_multicast_encap;
- uint64_t mpo_mbuf_label_associate_netlayer;
- uint64_t mpo_mbuf_label_associate_socket;
- uint64_t mpo_mbuf_label_copy;
- uint64_t mpo_mbuf_label_destroy;
- uint64_t mpo_mbuf_label_init;
- uint64_t mpo_mount_check_fsctl;
- uint64_t mpo_mount_check_getattr;
- uint64_t mpo_mount_check_label_update;
- uint64_t mpo_mount_check_mount;
- uint64_t mpo_mount_check_remount;
- uint64_t mpo_mount_check_setattr;
- uint64_t mpo_mount_check_stat;
- uint64_t mpo_mount_check_umount;
- uint64_t mpo_mount_label_associate;
- uint64_t mpo_mount_label_destroy;
- uint64_t mpo_mount_label_externalize;
- uint64_t mpo_mount_label_init;
- uint64_t mpo_mount_label_internalize;
- uint64_t mpo_netinet_fragment;
- uint64_t mpo_netinet_icmp_reply;
- uint64_t mpo_netinet_tcp_reply;
- uint64_t mpo_pipe_check_ioctl;
- uint64_t mpo_pipe_check_kqfilter;
- uint64_t mpo_pipe_check_label_update;
- uint64_t mpo_pipe_check_read;
- uint64_t mpo_pipe_check_select;
- uint64_t mpo_pipe_check_stat;
- uint64_t mpo_pipe_check_write;
- uint64_t mpo_pipe_label_associate;
- uint64_t mpo_pipe_label_copy;
- uint64_t mpo_pipe_label_destroy;
- uint64_t mpo_pipe_label_externalize;
- uint64_t mpo_pipe_label_init;
- uint64_t mpo_pipe_label_internalize;
- uint64_t mpo_pipe_label_update;
- uint64_t mpo_policy_destroy;
- uint64_t mpo_policy_init;
- uint64_t mpo_policy_initbsd;
- uint64_t mpo_policy_syscall;
- uint64_t mpo_system_check_sysctlbyname;
- uint64_t mpo_proc_check_inherit_ipc_ports;
- uint64_t mpo_vnode_check_rename;
- uint64_t mpo_kext_check_query;
- uint64_t mpo_iokit_check_nvram_get;
- uint64_t mpo_iokit_check_nvram_set;
- uint64_t mpo_iokit_check_nvram_delete;
- uint64_t mpo_proc_check_expose_task;
- uint64_t mpo_proc_check_set_host_special_port;
- uint64_t mpo_proc_check_set_host_exception_port;
- uint64_t mpo_exc_action_check_exception_send;
- uint64_t mpo_exc_action_label_associate;
- uint64_t mpo_exc_action_label_copy;
- uint64_t mpo_exc_action_label_destroy;
- uint64_t mpo_exc_action_label_init;
- uint64_t mpo_exc_action_label_update;
- uint64_t mpo_reserved1;
- uint64_t mpo_reserved2;
- uint64_t mpo_reserved3;
- uint64_t mpo_reserved4;
- uint64_t mpo_reserved5;
- uint64_t mpo_reserved6;
- uint64_t mpo_posixsem_check_create;
- uint64_t mpo_posixsem_check_open;
- uint64_t mpo_posixsem_check_post;
- uint64_t mpo_posixsem_check_unlink;
- uint64_t mpo_posixsem_check_wait;
- uint64_t mpo_posixsem_label_associate;
- uint64_t mpo_posixsem_label_destroy;
- uint64_t mpo_posixsem_label_init;
- uint64_t mpo_posixshm_check_create;
- uint64_t mpo_posixshm_check_mmap;
- uint64_t mpo_posixshm_check_open;
- uint64_t mpo_posixshm_check_stat;
- uint64_t mpo_posixshm_check_truncate;
- uint64_t mpo_posixshm_check_unlink;
- uint64_t mpo_posixshm_label_associate;
- uint64_t mpo_posixshm_label_destroy;
- uint64_t mpo_posixshm_label_init;
- uint64_t mpo_proc_check_debug;
- uint64_t mpo_proc_check_fork;
- uint64_t mpo_proc_check_get_task_name;
- uint64_t mpo_proc_check_get_task;
- uint64_t mpo_proc_check_getaudit;
- uint64_t mpo_proc_check_getauid;
- uint64_t mpo_proc_check_getlcid;
- uint64_t mpo_proc_check_mprotect;
- uint64_t mpo_proc_check_sched;
- uint64_t mpo_proc_check_setaudit;
- uint64_t mpo_proc_check_setauid;
- uint64_t mpo_proc_check_setlcid;
- uint64_t mpo_proc_check_signal;
- uint64_t mpo_proc_check_wait;
- uint64_t mpo_proc_label_destroy;
- uint64_t mpo_proc_label_init;
- uint64_t mpo_socket_check_accept;
- uint64_t mpo_socket_check_accepted;
- uint64_t mpo_socket_check_bind;
- uint64_t mpo_socket_check_connect;
- uint64_t mpo_socket_check_create;
- uint64_t mpo_socket_check_deliver;
- uint64_t mpo_socket_check_kqfilter;
- uint64_t mpo_socket_check_label_update;
- uint64_t mpo_socket_check_listen;
- uint64_t mpo_socket_check_receive;
- uint64_t mpo_socket_check_received;
- uint64_t mpo_socket_check_select;
- uint64_t mpo_socket_check_send;
- uint64_t mpo_socket_check_stat;
- uint64_t mpo_socket_check_setsockopt;
- uint64_t mpo_socket_check_getsockopt;
- uint64_t mpo_socket_label_associate_accept;
- uint64_t mpo_socket_label_associate;
- uint64_t mpo_socket_label_copy;
- uint64_t mpo_socket_label_destroy;
- uint64_t mpo_socket_label_externalize;
- uint64_t mpo_socket_label_init;
- uint64_t mpo_socket_label_internalize;
- uint64_t mpo_socket_label_update;
- uint64_t mpo_socketpeer_label_associate_mbuf;
- uint64_t mpo_socketpeer_label_associate_socket;
- uint64_t mpo_socketpeer_label_destroy;
- uint64_t mpo_socketpeer_label_externalize;
- uint64_t mpo_socketpeer_label_init;
- uint64_t mpo_system_check_acct;
- uint64_t mpo_system_check_audit;
- uint64_t mpo_system_check_auditctl;
- uint64_t mpo_system_check_auditon;
- uint64_t mpo_system_check_host_priv;
- uint64_t mpo_system_check_nfsd;
- uint64_t mpo_system_check_reboot;
- uint64_t mpo_system_check_settime;
- uint64_t mpo_system_check_swapoff;
- uint64_t mpo_system_check_swapon;
- uint64_t mpo_reserved7;
- uint64_t mpo_sysvmsg_label_associate;
- uint64_t mpo_sysvmsg_label_destroy;
- uint64_t mpo_sysvmsg_label_init;
- uint64_t mpo_sysvmsg_label_recycle;
- uint64_t mpo_sysvmsq_check_enqueue;
- uint64_t mpo_sysvmsq_check_msgrcv;
- uint64_t mpo_sysvmsq_check_msgrmid;
- uint64_t mpo_sysvmsq_check_msqctl;
- uint64_t mpo_sysvmsq_check_msqget;
- uint64_t mpo_sysvmsq_check_msqrcv;
- uint64_t mpo_sysvmsq_check_msqsnd;
- uint64_t mpo_sysvmsq_label_associate;
- uint64_t mpo_sysvmsq_label_destroy;
- uint64_t mpo_sysvmsq_label_init;
- uint64_t mpo_sysvmsq_label_recycle;
- uint64_t mpo_sysvsem_check_semctl;
- uint64_t mpo_sysvsem_check_semget;
- uint64_t mpo_sysvsem_check_semop;
- uint64_t mpo_sysvsem_label_associate;
- uint64_t mpo_sysvsem_label_destroy;
- uint64_t mpo_sysvsem_label_init;
- uint64_t mpo_sysvsem_label_recycle;
- uint64_t mpo_sysvshm_check_shmat;
- uint64_t mpo_sysvshm_check_shmctl;
- uint64_t mpo_sysvshm_check_shmdt;
- uint64_t mpo_sysvshm_check_shmget;
- uint64_t mpo_sysvshm_label_associate;
- uint64_t mpo_sysvshm_label_destroy;
- uint64_t mpo_sysvshm_label_init;
- uint64_t mpo_sysvshm_label_recycle;
- uint64_t mpo_reserved8;
- uint64_t mpo_mount_check_snapshot_revert;
- uint64_t mpo_vnode_check_getattr;
- uint64_t mpo_mount_check_snapshot_create;
- uint64_t mpo_mount_check_snapshot_delete;
- uint64_t mpo_vnode_check_clone;
- uint64_t mpo_proc_check_get_cs_info;
- uint64_t mpo_proc_check_set_cs_info;
- uint64_t mpo_iokit_check_hid_control;
- uint64_t mpo_vnode_check_access;
- uint64_t mpo_vnode_check_chdir;
- uint64_t mpo_vnode_check_chroot;
- uint64_t mpo_vnode_check_create;
- uint64_t mpo_vnode_check_deleteextattr;
- uint64_t mpo_vnode_check_exchangedata;
- uint64_t mpo_vnode_check_exec;
- uint64_t mpo_vnode_check_getattrlist;
- uint64_t mpo_vnode_check_getextattr;
- uint64_t mpo_vnode_check_ioctl;
- uint64_t mpo_vnode_check_kqfilter;
- uint64_t mpo_vnode_check_label_update;
- uint64_t mpo_vnode_check_link;
- uint64_t mpo_vnode_check_listextattr;
- uint64_t mpo_vnode_check_lookup;
- uint64_t mpo_vnode_check_open;
- uint64_t mpo_vnode_check_read;
- uint64_t mpo_vnode_check_readdir;
- uint64_t mpo_vnode_check_readlink;
- uint64_t mpo_vnode_check_rename_from;
- uint64_t mpo_vnode_check_rename_to;
- uint64_t mpo_vnode_check_revoke;
- uint64_t mpo_vnode_check_select;
- uint64_t mpo_vnode_check_setattrlist;
- uint64_t mpo_vnode_check_setextattr;
- uint64_t mpo_vnode_check_setflags;
- uint64_t mpo_vnode_check_setmode;
- uint64_t mpo_vnode_check_setowner;
- uint64_t mpo_vnode_check_setutimes;
- uint64_t mpo_vnode_check_stat;
- uint64_t mpo_vnode_check_truncate;
- uint64_t mpo_vnode_check_unlink;
- uint64_t mpo_vnode_check_write;
- uint64_t mpo_vnode_label_associate_devfs;
- uint64_t mpo_vnode_label_associate_extattr;
- uint64_t mpo_vnode_label_associate_file;
- uint64_t mpo_vnode_label_associate_pipe;
- uint64_t mpo_vnode_label_associate_posixsem;
- uint64_t mpo_vnode_label_associate_posixshm;
- uint64_t mpo_vnode_label_associate_singlelabel;
- uint64_t mpo_vnode_label_associate_socket;
- uint64_t mpo_vnode_label_copy;
- uint64_t mpo_vnode_label_destroy;
- uint64_t mpo_vnode_label_externalize_audit;
- uint64_t mpo_vnode_label_externalize;
- uint64_t mpo_vnode_label_init;
- uint64_t mpo_vnode_label_internalize;
- uint64_t mpo_vnode_label_recycle;
- uint64_t mpo_vnode_label_store;
- uint64_t mpo_vnode_label_update_extattr;
- uint64_t mpo_vnode_label_update;
- uint64_t mpo_vnode_notify_create;
- uint64_t mpo_vnode_check_signature;
- uint64_t mpo_vnode_check_uipc_bind;
- uint64_t mpo_vnode_check_uipc_connect;
- uint64_t mpo_proc_check_run_cs_invalid;
- uint64_t mpo_proc_check_suspend_resume;
- uint64_t mpo_thread_userret;
- uint64_t mpo_iokit_check_set_properties;
- uint64_t mpo_system_check_chud;
- uint64_t mpo_vnode_check_searchfs;
- uint64_t mpo_priv_check;
- uint64_t mpo_priv_grant;
- uint64_t mpo_proc_check_map_anon;
- uint64_t mpo_vnode_check_fsgetpath;
- uint64_t mpo_iokit_check_open;
- uint64_t mpo_proc_check_ledger;
- uint64_t mpo_vnode_notify_rename;
- uint64_t mpo_vnode_check_setacl;
- uint64_t mpo_vnode_notify_deleteextattr;
- uint64_t mpo_system_check_kas_info;
- uint64_t mpo_proc_check_cpumon;
- uint64_t mpo_vnode_notify_open;
- uint64_t mpo_system_check_info;
- uint64_t mpo_pty_notify_grant;
- uint64_t mpo_pty_notify_close;
- uint64_t mpo_vnode_find_sigs;
- uint64_t mpo_kext_check_load;
- uint64_t mpo_kext_check_unload;
- uint64_t mpo_proc_check_proc_info;
- uint64_t mpo_vnode_notify_link;
- uint64_t mpo_iokit_check_filter_properties;
- uint64_t mpo_iokit_check_get_property;
- };
- kern_return_t mach_vm_read_overwrite(vm_map_t target_task, mach_vm_address_t address, mach_vm_size_t size, mach_vm_address_t data, mach_vm_size_t *outsize);
- kern_return_t mach_vm_write(vm_map_t target_task, mach_vm_address_t address, vm_offset_t data, mach_msg_type_number_t dataCnt);
- kern_return_t mach_vm_protect(vm_map_t target_task, mach_vm_address_t address, mach_vm_size_t size, boolean_t set_maximum, vm_prot_t new_protection);
- kern_return_t mach_vm_allocate(vm_map_t target, mach_vm_address_t *address, mach_vm_size_t size, int flags);
- #define ReadAnywhere32 kread_uint32
- #define WriteAnywhere32 kwrite_uint32
- #define ReadAnywhere64 kread_uint64
- #define WriteAnywhere64 kwrite_uint64
- #define copyin(to, from, size) kpp_kread(from, to, size)
- #define copyout(to, from, size) kpp_kwrite(to, from, size)
- #endif /* kpp_h */
|