Home
last modified time | relevance | path

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

12

/xnu-8792.41.9/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.c400 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()
724 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.c5008 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 Dkern_memorystatus_notify.c1764 error = priv_check_cred(kauth_cred_get(), PRIV_VM_PRESSURE, 0);
H A Dkern_descrip.c3357 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 Dkern_resource.c638 if (priv_check_cred(ucred, PRIV_SETPRIORITY_DARWIN_ROLE, 0) != 0) { in proc_set_darwin_role()
/xnu-8792.41.9/bsd/sys/
H A Dpriv.h171 int priv_check_cred(kauth_cred_t cred, int priv, int flags);
/xnu-8792.41.9/bsd/net/
H A Dif.c263 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 Dntstat.c3540 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 Dnecp.c750 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 Dif_ports_used.c578 if ((error = priv_check_cred(kauth_cred_get(),
H A Dnecp_client.c6797 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 Din_pcb.c194 (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 Dskywalk.c521 int ret = priv_check_cred(cred, priv, 0); in sk_priv_chk()
/xnu-8792.41.9/bsd/netinet6/
H A Din6_pcb.c358 error = priv_check_cred(cred, in in6_pcbbind()
H A Din6_src.c1598 error = priv_check_cred(cred, PRIV_NETINET_RESERVEDPORT, 0); in in6_pcbsetport()
/xnu-8792.41.9/bsd/security/audit/
H A Daudit_session.c1357 err = priv_check_cred(cred, PRIV_AUDIT_SESSION_PORT, 0); in audit_session_port()
/xnu-8792.41.9/bsd/skywalk/nexus/flowswitch/
H A Dfsw.c974 error = priv_check_cred(cred, in fsw_ctl()

12