Home
last modified time | relevance | path

Searched refs:priv_check_cred (Results 1 – 25 of 37) sorted by relevance

12

/xnu-10063.141.1/bsd/kern/
H A Dkern_priv.c78 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 Dkern_sfi.c81 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 Dkern_ecc.c47 if (priv_check_cred(kauth_cred_get(), PRIV_HW_DEBUG_DATA, 0) != 0) { in get_ecc_data_handler()
H A Dkern_overrides.c104 if ((error = priv_check_cred(kauth_cred_get(), PRIV_SYSTEM_OVERRIDE, 0))) { in system_override()
H A Dsys_work_interval.c71 if ((error = priv_check_cred(kauth_cred_get(), PRIV_WORK_INTERVAL, 0)) != 0) { in work_interval_ctl()
H A Dkern_ktrace.c417 if ((err = priv_check_cred(kauth_cred_get(), PRIV_KTRACE_BACKGROUND, 0))) { in ktrace_init_background()
H A Dproc_uuid_policy.c372 error = priv_check_cred(kauth_cred_get(), PRIV_PROC_UUID_POLICY, 0); in proc_uuid_policy()
H A Dkern_ntptime.c360 if ((error = priv_check_cred(kauth_cred_get(), PRIV_ADJTIME, 0))) { in ntp_adjtime()
723 if ((error = priv_check_cred(kauth_cred_get(), PRIV_ADJTIME, 0))) { in adjtime()
H A Dprocess_policy.c290 privileged = (priv_check_cred(kauth_cred_get(), PRIV_PROC_CPUMON_OVERRIDE, 0) == 0); in handle_cpuuse()
H A Duipc_socket.c4772 error = priv_check_cred(cred ? cred : so->so_cred, priv, 0); in soopt_cred_check()
5248 error = priv_check_cred(kauth_cred_get(), in sosetoptlock()
5636 error = priv_check_cred(kauth_cred_get(), in sosetoptlock()
7902 if ((error = priv_check_cred(kauth_cred_get(), in so_set_effective_pid()
8024 if ((error = priv_check_cred(kauth_cred_get(), in so_set_effective_uuid()
H A Dkern_memorystatus_notify.c1765 error = priv_check_cred(kauth_cred_get(), PRIV_VM_PRESSURE, 0);
H A Dkern_descrip.c3355 if (priv_check_cred(kauth_cred_get(), PRIV_TRIM_ACTIVE_FILE, 0)) { in sys_fcntl_nocancel()
3514 error = priv_check_cred(kauth_cred_get(), PRIV_VFS_SETSIZE, 0); in sys_fcntl_nocancel()
4455 error = priv_check_cred(kauth_cred_get(), PRIV_VFS_MOVE_DATA_EXTENTS, 0); in sys_fcntl_nocancel()
H A Dkern_resource.c684 if (priv_check_cred(ucred, PRIV_SETPRIORITY_DARWIN_ROLE, 0) != 0) { in proc_set_darwin_role()
/xnu-10063.141.1/bsd/sys/
H A Dpriv.h173 int priv_check_cred(kauth_cred_t cred, int priv, int flags);
/xnu-10063.141.1/bsd/net/
H A Dif.c267 if ((error = priv_check_cred(kauth_cred_get(),
4097 if ((error = priv_check_cred(kauth_cred_get(), in ifioctl_ifreq()
4130 if ((error = priv_check_cred(kauth_cred_get(), in ifioctl_ifreq()
4172 if ((error = priv_check_cred(kauth_cred_get(), in ifioctl_ifreq()
4206 if ((error = priv_check_cred(kauth_cred_get(), in ifioctl_ifreq()
4247 if ((error = priv_check_cred(kauth_cred_get(), in ifioctl_ifreq()
4292 if ((error = priv_check_cred(kauth_cred_get(), in ifioctl_ifreq()
4383 if ((error = priv_check_cred(kauth_cred_get(), in ifioctl_ifreq()
4392 if ((error = priv_check_cred(kauth_cred_get(), in ifioctl_ifreq()
4400 if ((error = priv_check_cred(kauth_cred_get(), in ifioctl_ifreq()
[all …]
H A Dntstat.c3589 errno_t result = priv_check_cred(kauth_cred_get(), in nstat_ifnet_lookup()
6092 if (priv_check_cred(kauth_cred_get(), PRIV_NET_PRIVILEGED_NETWORK_STATISTICS, 0) == 0) { in nstat_set_provider_filter()
6127 result = priv_check_cred(kauth_cred_get(), in nstat_control_handle_add_all()
6709 errno_t result = priv_check_cred(kauth_cred_get(), PRIV_NET_PRIVILEGED_NETWORK_STATISTICS, 0); in nstat_control_handle_subscribe_sysinfo()
7046 if (priv_check_cred(kauth_cred_get(), PRIV_NET_PRIVILEGED_NETWORK_STATISTICS, 0) != 0) { in ntstat_tcp_progress_indicators()
7075 if (priv_check_cred(kauth_cred_get(), PRIV_NET_PRIVILEGED_NETWORK_STATISTICS, 0) != 0) { in ntstat_tcp_progress_enable()
H A Dnecp_client.c6998 priv_check_cred(kauth_cred_get(), PRIV_NET_PRIVILEGED_NETWORK_STATISTICS, 0) != 0) { in necp_open()
7141 …bool has_delegation_entitlement = (priv_check_cred(kauth_cred_get(), PRIV_NET_PRIVILEGED_SOCKET_DE… in necp_client_add()
7173 …bool has_custom_protocol_entitlement = (priv_check_cred(kauth_cred_get(), PRIV_NET_CUSTOM_PROTOCOL… in necp_client_add()
10278 …const bool has_resolver_entitlement = (priv_check_cred(kauth_cred_get(), PRIV_NET_VALIDATED_RESOLV… in necp_client_sign()
10412 …const bool has_resolver_entitlement = (priv_check_cred(kauth_cred_get(), PRIV_NET_VALIDATED_RESOLV… in necp_client_validate()
10475 …has_delegation_entitlement = (priv_check_cred(kauth_cred_get(), PRIV_NET_PRIVILEGED_SOCKET_DELEGAT… in necp_client_get_signed_client_id()
10544 …has_delegation_entitlement = (priv_check_cred(kauth_cred_get(), PRIV_NET_PRIVILEGED_SOCKET_DELEGAT… in necp_client_set_signed_client_id()
H A Dnecp.c812 if (priv_check_cred(cred, PRIV_NET_PRIVILEGED_CLIENT_ACCESS, 0) != 0 && in _necp_process_drop_order_inner()
813 priv_check_cred(cred, PRIV_NET_PRIVILEGED_SERVER_ACCESS, 0) != 0) { in _necp_process_drop_order_inner()
898 if (uid != 0 && priv_check_cred(kauth_cred_get(), PRIV_NET_PRIVILEGED_NECP_POLICIES, 0) != 0) { in necp_session_open()
1234 errno_t cred_result = priv_check_cred(kauth_cred_get(), PRIV_NET_PRIVILEGED_NECP_POLICIES, 0); in necp_session_set_session_priority()
3035 errno_t cred_result = priv_check_cred(kauth_cred_get(), PRIV_NET_PRIVILEGED_NECP_POLICIES, 0); in necp_handle_policy_dump_all()
7239 … has_delegation_entitlement = (priv_check_cred(_c, PRIV_NET_PRIVILEGED_SOCKET_DELEGATE, 0) == 0); \
12673 priv_check_cred(kauth_cred_get(), PRIV_NET_PRIVILEGED_NECP_POLICIES, 0) != 0) {
H A Dif_ports_used.c589 if ((error = priv_check_cred(kauth_cred_get(),
/xnu-10063.141.1/bsd/netinet/
H A Din_pcb.c202 (error = priv_check_cred(kauth_cred_get(),
1002 error = priv_check_cred(cred, in in_pcbbind()
1137 error = priv_check_cred(cred, in in_pcbbind()
/xnu-10063.141.1/bsd/skywalk/core/
H A Dskywalk.c535 ret = priv_check_cred(cred, priv, 0); in sk_priv_chk()
/xnu-10063.141.1/bsd/security/audit/
H A Daudit_session.c1345 err = priv_check_cred(cred, PRIV_AUDIT_SESSION_PORT, 0); in audit_session_port()
/xnu-10063.141.1/bsd/netinet6/
H A Din6_pcb.c378 error = priv_check_cred(cred, in in6_pcbbind()
H A Din6_src.c1692 error = priv_check_cred(cred, PRIV_NETINET_RESERVEDPORT, 0); in in6_pcbsetport()
/xnu-10063.141.1/bsd/skywalk/nexus/flowswitch/
H A Dfsw.c1052 error = priv_check_cred(cred, in fsw_ctl()

12