Home
last modified time | relevance | path

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

12

/xnu-12377.61.12/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 Dproc_uuid_policy.c372 error = priv_check_cred(kauth_cred_get(), PRIV_PROC_UUID_POLICY, 0); in proc_uuid_policy()
H A Dkern_ktrace.c417 if ((err = priv_check_cred(kauth_cred_get(), PRIV_KTRACE_BACKGROUND, 0))) { in ktrace_init_background()
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.c4710 error = priv_check_cred(cred ? cred : so->so_cred, priv, 0); in soopt_cred_check()
5186 error = priv_check_cred(kauth_cred_get(), in sosetoptlock()
5574 error = priv_check_cred(kauth_cred_get(), in sosetoptlock()
7910 if ((error = priv_check_cred(kauth_cred_get(), in so_set_effective_pid()
8032 if ((error = priv_check_cred(kauth_cred_get(), in so_set_effective_uuid()
H A Dkern_memorystatus_notify.c1891 error = priv_check_cred(kauth_cred_get(), PRIV_VM_PRESSURE, 0);
H A Dkern_descrip.c3393 if (priv_check_cred(kauth_cred_get(), PRIV_TRIM_ACTIVE_FILE, 0)) { in sys_fcntl_nocancel()
3559 error = priv_check_cred(kauth_cred_get(), PRIV_VFS_SETSIZE, 0); in sys_fcntl_nocancel()
4526 error = priv_check_cred(kauth_cred_get(), PRIV_VFS_MOVE_DATA_EXTENTS, 0); in sys_fcntl_nocancel()
H A Dkern_memorystatus.c1580 error = priv_check_cred(kauth_cred_get(), PRIV_VM_JETSAM, 0);
1678 error = priv_check_cred(kauth_cred_get(), PRIV_VM_JETSAM, 0);
8708 error = priv_check_cred(kauth_cred_get(), PRIV_VM_PRESSURE, 0);
H A Dkern_resource.c844 if (priv_check_cred(ucred, PRIV_SETPRIORITY_DARWIN_ROLE, 0) != 0) { in proc_set_darwin_role()
/xnu-12377.61.12/bsd/sys/
H A Dpriv.h173 int priv_check_cred(kauth_cred_t cred, int priv, int flags);
/xnu-12377.61.12/bsd/net/
H A Dif.c276 if ((error = priv_check_cred(kauth_cred_get(),
2589 if ((error = priv_check_cred(kauth_cred_get(), in ifioctl_iforder()
2699 if ((error = priv_check_cred(kauth_cred_get(), in ifioctl_networkid()
2732 if ((error = priv_check_cred(kauth_cred_get(), in ifioctl_netsignature()
2774 if ((error = priv_check_cred(kauth_cred_get(), in ifioctl_nat64prefix()
4251 if ((error = priv_check_cred(kauth_cred_get(), in ifioctl_ifreq()
4284 if ((error = priv_check_cred(kauth_cred_get(), in ifioctl_ifreq()
4326 if ((error = priv_check_cred(kauth_cred_get(), in ifioctl_ifreq()
4369 if ((error = priv_check_cred(kauth_cred_get(), in ifioctl_ifreq()
4407 if ((error = priv_check_cred(kauth_cred_get(), in ifioctl_ifreq()
[all …]
H A Dntstat.c876 if (priv_check_cred(kauth_cred_get(), PRIV_NET_PRIVILEGED_NETWORK_STATISTICS, 0) != 0) { in ntstat_get_metrics()
4280 errno_t result = priv_check_cred(kauth_cred_get(), in nstat_ifnet_lookup()
6865 if (priv_check_cred(kauth_cred_get(), PRIV_NET_PRIVILEGED_NETWORK_STATISTICS, 0) == 0) { in nstat_set_provider_filter()
6900 result = priv_check_cred(kauth_cred_get(), in nstat_client_handle_add_all()
7670 errno_t result = priv_check_cred(kauth_cred_get(), PRIV_NET_PRIVILEGED_NETWORK_STATISTICS, 0); in nstat_client_handle_subscribe_sysinfo()
8013 if (priv_check_cred(kauth_cred_get(), PRIV_NET_PRIVILEGED_NETWORK_STATISTICS, 0) != 0) { in ntstat_progress_indicators()
8041 if (priv_check_cred(kauth_cred_get(), PRIV_NET_PRIVILEGED_NETWORK_STATISTICS, 0) != 0) { in ntstat_tcp_progress_enable()
H A Dnecp.c956 if (priv_check_cred(cred, PRIV_NET_PRIVILEGED_CLIENT_ACCESS, 0) != 0 && in _necp_process_drop_order_inner()
957 priv_check_cred(cred, PRIV_NET_PRIVILEGED_SERVER_ACCESS, 0) != 0) { in _necp_process_drop_order_inner()
1049 if (uid != 0 && priv_check_cred(kauth_cred_get(), PRIV_NET_PRIVILEGED_NECP_POLICIES, 0) != 0) { in necp_session_open()
1385 errno_t cred_result = priv_check_cred(kauth_cred_get(), PRIV_NET_PRIVILEGED_NECP_POLICIES, 0); in necp_session_set_session_priority()
3344 errno_t cred_result = priv_check_cred(kauth_cred_get(), PRIV_NET_PRIVILEGED_NECP_POLICIES, 0); in necp_handle_policy_dump_all()
7939 … has_delegation_entitlement = (priv_check_cred(_c, PRIV_NET_PRIVILEGED_SOCKET_DELEGATE, 0) == 0); \
13940 priv_check_cred(kauth_cred_get(), PRIV_NET_PRIVILEGED_NECP_POLICIES, 0) != 0) {
H A Dnecp_client.c7718 priv_check_cred(kauth_cred_get(), PRIV_NET_PRIVILEGED_NETWORK_STATISTICS, 0) != 0) { in necp_open()
7862 …bool has_delegation_entitlement = (priv_check_cred(kauth_cred_get(), PRIV_NET_PRIVILEGED_SOCKET_DE… in necp_client_add()
7894 …bool has_custom_protocol_entitlement = (priv_check_cred(kauth_cred_get(), PRIV_NET_CUSTOM_PROTOCOL… in necp_client_add()
11307 …const bool has_resolver_entitlement = (priv_check_cred(kauth_cred_get(), PRIV_NET_VALIDATED_RESOLV… in necp_client_sign()
11441 …const bool has_resolver_entitlement = (priv_check_cred(kauth_cred_get(), PRIV_NET_VALIDATED_RESOLV… in necp_client_validate()
11561 …has_delegation_entitlement = (priv_check_cred(kauth_cred_get(), PRIV_NET_PRIVILEGED_SOCKET_DELEGAT… in necp_client_set_signed_client_id()
/xnu-12377.61.12/bsd/netinet/
H A Din_pcb.c206 (error = priv_check_cred(kauth_cred_get(),
994 error = priv_check_cred(cred, in in_pcbbind()
1129 error = priv_check_cred(cred, in in_pcbbind()
4556 error = priv_check_cred(cred, PRIV_NETINET_RESERVEDPORT, 0); in in_pcbsetport()
/xnu-12377.61.12/bsd/skywalk/core/
H A Dskywalk.c529 ret = priv_check_cred(cred, priv, 0); in sk_priv_chk()
/xnu-12377.61.12/bsd/netinet6/
H A Din6_pcb.c376 error = priv_check_cred(cred, in in6_pcbbind()
H A Din6_src.c1696 error = priv_check_cred(cred, PRIV_NETINET_RESERVEDPORT, 0); in in6_pcbsetport()
/xnu-12377.61.12/bsd/security/audit/
H A Daudit_session.c1340 err = priv_check_cred(cred, PRIV_AUDIT_SESSION_PORT, 0); in audit_session_port()
/xnu-12377.61.12/bsd/skywalk/nexus/flowswitch/
H A Dfsw.c1069 error = priv_check_cred(cred, in fsw_ctl()

12