| /xnu-8792.41.9/bsd/kern/ |
| H A D | kern_priv.c | 78 priv_check_cred(kauth_cred_t cred, int priv, int flags) in priv_check_cred() function 133 return priv_check_cred(kauth_cred_get(), PRIV_VM_FOOTPRINT_LIMIT, 0); in proc_check_footprint_priv()
|
| H A D | kern_sfi.c | 81 error = priv_check_cred(kauth_cred_get(), PRIV_SELECTIVE_FORCED_IDLE, 0); in sfi_ctl() 122 error = priv_check_cred(kauth_cred_get(), PRIV_SELECTIVE_FORCED_IDLE, 0); in sfi_ctl() 205 error = priv_check_cred(kauth_cred_get(), PRIV_SELECTIVE_FORCED_IDLE, 0); in sfi_pidctl()
|
| H A D | kern_ecc.c | 47 if (priv_check_cred(kauth_cred_get(), PRIV_HW_DEBUG_DATA, 0) != 0) { in get_ecc_data_handler()
|
| H A D | kern_overrides.c | 104 if ((error = priv_check_cred(kauth_cred_get(), PRIV_SYSTEM_OVERRIDE, 0))) { in system_override()
|
| H A D | sys_work_interval.c | 71 if ((error = priv_check_cred(kauth_cred_get(), PRIV_WORK_INTERVAL, 0)) != 0) { in work_interval_ctl()
|
| H A D | kern_ktrace.c | 400 if ((err = priv_check_cred(kauth_cred_get(), PRIV_KTRACE_BACKGROUND, 0))) { in ktrace_init_background()
|
| H A D | proc_uuid_policy.c | 372 error = priv_check_cred(kauth_cred_get(), PRIV_PROC_UUID_POLICY, 0); in proc_uuid_policy()
|
| H A D | kern_ntptime.c | 360 if ((error = priv_check_cred(kauth_cred_get(), PRIV_ADJTIME, 0))) { in ntp_adjtime() 724 if ((error = priv_check_cred(kauth_cred_get(), PRIV_ADJTIME, 0))) { in adjtime()
|
| H A D | process_policy.c | 290 privileged = (priv_check_cred(kauth_cred_get(), PRIV_PROC_CPUMON_OVERRIDE, 0) == 0); in handle_cpuuse()
|
| H A D | uipc_socket.c | 5008 error = priv_check_cred(cred ? cred : so->so_cred, priv, 0); in soopt_cred_check() 5484 error = priv_check_cred(kauth_cred_get(), in sosetoptlock() 5872 error = priv_check_cred(kauth_cred_get(), in sosetoptlock() 8073 if ((error = priv_check_cred(kauth_cred_get(), in so_set_effective_pid() 8195 if ((error = priv_check_cred(kauth_cred_get(), in so_set_effective_uuid()
|
| H A D | kern_memorystatus_notify.c | 1764 error = priv_check_cred(kauth_cred_get(), PRIV_VM_PRESSURE, 0);
|
| H A D | kern_descrip.c | 3357 if (priv_check_cred(kauth_cred_get(), PRIV_TRIM_ACTIVE_FILE, 0)) { in sys_fcntl_nocancel() 3483 error = priv_check_cred(kauth_cred_get(), PRIV_VFS_SETSIZE, 0); in sys_fcntl_nocancel() 4408 error = priv_check_cred(kauth_cred_get(), PRIV_VFS_MOVE_DATA_EXTENTS, 0); in sys_fcntl_nocancel()
|
| H A D | kern_resource.c | 638 if (priv_check_cred(ucred, PRIV_SETPRIORITY_DARWIN_ROLE, 0) != 0) { in proc_set_darwin_role()
|
| /xnu-8792.41.9/bsd/sys/ |
| H A D | priv.h | 171 int priv_check_cred(kauth_cred_t cred, int priv, int flags);
|
| /xnu-8792.41.9/bsd/net/ |
| H A D | if.c | 263 if ((error = priv_check_cred(kauth_cred_get(), 3848 if ((error = priv_check_cred(kauth_cred_get(), in ifioctl_ifreq() 3881 if ((error = priv_check_cred(kauth_cred_get(), in ifioctl_ifreq() 3923 if ((error = priv_check_cred(kauth_cred_get(), in ifioctl_ifreq() 3957 if ((error = priv_check_cred(kauth_cred_get(), in ifioctl_ifreq() 3998 if ((error = priv_check_cred(kauth_cred_get(), in ifioctl_ifreq() 4043 if ((error = priv_check_cred(kauth_cred_get(), in ifioctl_ifreq() 4134 if ((error = priv_check_cred(kauth_cred_get(), in ifioctl_ifreq() 4143 if ((error = priv_check_cred(kauth_cred_get(), in ifioctl_ifreq() 4151 if ((error = priv_check_cred(kauth_cred_get(), in ifioctl_ifreq() [all …]
|
| H A D | ntstat.c | 3540 errno_t result = priv_check_cred(kauth_cred_get(), in nstat_ifnet_lookup() 6082 result = priv_check_cred(kauth_cred_get(), in nstat_control_handle_add_all() 6664 errno_t result = priv_check_cred(kauth_cred_get(), PRIV_NET_PRIVILEGED_NETWORK_STATISTICS, 0); in nstat_control_handle_subscribe_sysinfo() 7003 if (priv_check_cred(kauth_cred_get(), PRIV_NET_PRIVILEGED_NETWORK_STATISTICS, 0) != 0) { in ntstat_tcp_progress_indicators() 7032 if (priv_check_cred(kauth_cred_get(), PRIV_NET_PRIVILEGED_NETWORK_STATISTICS, 0) != 0) { in ntstat_tcp_progress_enable()
|
| H A D | necp.c | 750 if (priv_check_cred(cred, PRIV_NET_PRIVILEGED_CLIENT_ACCESS, 0) != 0 && in _necp_process_drop_order_inner() 751 priv_check_cred(cred, PRIV_NET_PRIVILEGED_SERVER_ACCESS, 0) != 0) { in _necp_process_drop_order_inner() 827 if (uid != 0 && priv_check_cred(kauth_cred_get(), PRIV_NET_PRIVILEGED_NECP_POLICIES, 0) != 0) { in necp_session_open() 1163 errno_t cred_result = priv_check_cred(kauth_cred_get(), PRIV_NET_PRIVILEGED_NECP_POLICIES, 0); in necp_session_set_session_priority() 2856 errno_t cred_result = priv_check_cred(kauth_cred_get(), PRIV_NET_PRIVILEGED_NECP_POLICIES, 0); in necp_handle_policy_dump_all() 6834 … has_delegation_entitlement = (priv_check_cred(_c, PRIV_NET_PRIVILEGED_SOCKET_DELEGATE, 0) == 0); \ 11794 priv_check_cred(kauth_cred_get(), PRIV_NET_PRIVILEGED_NECP_POLICIES, 0) != 0) {
|
| H A D | if_ports_used.c | 578 if ((error = priv_check_cred(kauth_cred_get(),
|
| H A D | necp_client.c | 6797 priv_check_cred(kauth_cred_get(), PRIV_NET_PRIVILEGED_NETWORK_STATISTICS, 0) != 0) { in necp_open() 6940 …bool has_delegation_entitlement = (priv_check_cred(kauth_cred_get(), PRIV_NET_PRIVILEGED_SOCKET_DE… in necp_client_add() 6972 …bool has_custom_protocol_entitlement = (priv_check_cred(kauth_cred_get(), PRIV_NET_CUSTOM_PROTOCOL… in necp_client_add() 9969 …const bool has_resolver_entitlement = (priv_check_cred(kauth_cred_get(), PRIV_NET_VALIDATED_RESOLV… in necp_client_sign() 10103 …const bool has_resolver_entitlement = (priv_check_cred(kauth_cred_get(), PRIV_NET_VALIDATED_RESOLV… in necp_client_validate()
|
| /xnu-8792.41.9/bsd/netinet/ |
| H A D | in_pcb.c | 194 (error = priv_check_cred(kauth_cred_get(), 904 error = priv_check_cred(cred, in in_pcbbind() 1034 error = priv_check_cred(cred, in in_pcbbind()
|
| /xnu-8792.41.9/bsd/skywalk/core/ |
| H A D | skywalk.c | 521 int ret = priv_check_cred(cred, priv, 0); in sk_priv_chk()
|
| /xnu-8792.41.9/bsd/netinet6/ |
| H A D | in6_pcb.c | 358 error = priv_check_cred(cred, in in6_pcbbind()
|
| H A D | in6_src.c | 1598 error = priv_check_cred(cred, PRIV_NETINET_RESERVEDPORT, 0); in in6_pcbsetport()
|
| /xnu-8792.41.9/bsd/security/audit/ |
| H A D | audit_session.c | 1357 err = priv_check_cred(cred, PRIV_AUDIT_SESSION_PORT, 0); in audit_session_port()
|
| /xnu-8792.41.9/bsd/skywalk/nexus/flowswitch/ |
| H A D | fsw.c | 974 error = priv_check_cred(cred, in fsw_ctl()
|