Home
last modified time | relevance | path

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

12

/xnu-8020.101.4/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 Dsys_work_interval.c69 if ((error = priv_check_cred(kauth_cred_get(), PRIV_WORK_INTERVAL, 0)) != 0) { in work_interval_ctl()
H A Dkern_overrides.c104 if ((error = priv_check_cred(kauth_cred_get(), PRIV_SYSTEM_OVERRIDE, 0))) { in system_override()
H A Dkern_ktrace.c382 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.c5005 error = priv_check_cred(cred ? cred : so->so_cred, priv, 0); in soopt_cred_check()
5461 error = priv_check_cred(kauth_cred_get(), in sosetoptlock()
5826 error = priv_check_cred(kauth_cred_get(), in sosetoptlock()
7977 if ((error = priv_check_cred(kauth_cred_get(), in so_set_effective_pid()
8099 if ((error = priv_check_cred(kauth_cred_get(), in so_set_effective_uuid()
H A Dkern_memorystatus_notify.c1759 error = priv_check_cred(kauth_cred_get(), PRIV_VM_PRESSURE, 0);
H A Dkern_descrip.c3343 if (priv_check_cred(kauth_cred_get(), PRIV_TRIM_ACTIVE_FILE, 0)) { in sys_fcntl_nocancel()
3469 error = priv_check_cred(kauth_cred_get(), PRIV_VFS_SETSIZE, 0); in sys_fcntl_nocancel()
4396 error = priv_check_cred(kauth_cred_get(), PRIV_VFS_MOVE_DATA_EXTENTS, 0); in sys_fcntl_nocancel()
H A Dkern_resource.c639 if (priv_check_cred(ucred, PRIV_SETPRIORITY_DARWIN_ROLE, 0) != 0) { in proc_set_darwin_role()
/xnu-8020.101.4/bsd/sys/
H A Dpriv.h183 int priv_check_cred(kauth_cred_t cred, int priv, int flags);
/xnu-8020.101.4/bsd/net/
H A Dif.c263 if ((error = priv_check_cred(kauth_cred_get(),
3762 if ((error = priv_check_cred(kauth_cred_get(), in ifioctl_ifreq()
3795 if ((error = priv_check_cred(kauth_cred_get(), in ifioctl_ifreq()
3837 if ((error = priv_check_cred(kauth_cred_get(), in ifioctl_ifreq()
3871 if ((error = priv_check_cred(kauth_cred_get(), in ifioctl_ifreq()
3912 if ((error = priv_check_cred(kauth_cred_get(), in ifioctl_ifreq()
3957 if ((error = priv_check_cred(kauth_cred_get(), in ifioctl_ifreq()
4048 if ((error = priv_check_cred(kauth_cred_get(), in ifioctl_ifreq()
4057 if ((error = priv_check_cred(kauth_cred_get(), in ifioctl_ifreq()
4065 if ((error = priv_check_cred(kauth_cred_get(), in ifioctl_ifreq()
[all …]
H A Dnecp.c742 if (priv_check_cred(cred, PRIV_NET_PRIVILEGED_CLIENT_ACCESS, 0) != 0 && in _necp_process_drop_order_inner()
743 priv_check_cred(cred, PRIV_NET_PRIVILEGED_SERVER_ACCESS, 0) != 0) { in _necp_process_drop_order_inner()
813 if (uid != 0 && priv_check_cred(kauth_cred_get(), PRIV_NET_PRIVILEGED_NECP_POLICIES, 0) != 0) { in necp_session_open()
1148 errno_t cred_result = priv_check_cred(kauth_cred_get(), PRIV_NET_PRIVILEGED_NECP_POLICIES, 0); in necp_session_set_session_priority()
2843 errno_t cred_result = priv_check_cred(kauth_cred_get(), PRIV_NET_PRIVILEGED_NECP_POLICIES, 0); in necp_handle_policy_dump_all()
6646 errno_t cred_result = priv_check_cred(lead_cred, PRIV_NET_PRIVILEGED_NECP_MATCH, 0); in necp_get_parent_cred_result()
6783 info->cred_result = priv_check_cred(kauth_cred_get(), PRIV_NET_PRIVILEGED_NECP_MATCH, 0); in necp_application_fillout_info_locked()
6880 … has_delegation_entitlement = (priv_check_cred(_c, PRIV_NET_PRIVILEGED_SOCKET_DELEGATE, 0) == 0); \
8499 info->cred_result = priv_check_cred(so->so_cred, PRIV_NET_PRIVILEGED_NECP_MATCH, 0); in necp_socket_fillout_info_locked()
11803 priv_check_cred(kauth_cred_get(), PRIV_NET_PRIVILEGED_NECP_POLICIES, 0) != 0) {
H A Dntstat.c3433 errno_t result = priv_check_cred(kauth_cred_get(), in nstat_ifnet_lookup()
5977 result = priv_check_cred(kauth_cred_get(), in nstat_control_handle_add_all()
6559 errno_t result = priv_check_cred(kauth_cred_get(), PRIV_NET_PRIVILEGED_NETWORK_STATISTICS, 0); in nstat_control_handle_subscribe_sysinfo()
6898 if (priv_check_cred(kauth_cred_get(), PRIV_NET_PRIVILEGED_NETWORK_STATISTICS, 0) != 0) { in ntstat_tcp_progress_indicators()
6927 if (priv_check_cred(kauth_cred_get(), PRIV_NET_PRIVILEGED_NETWORK_STATISTICS, 0) != 0) { in ntstat_tcp_progress_enable()
H A Dif_ports_used.c567 if ((error = priv_check_cred(kauth_cred_get(),
H A Dnecp_client.c6591 priv_check_cred(kauth_cred_get(), PRIV_NET_PRIVILEGED_NETWORK_STATISTICS, 0) != 0) { in necp_open()
6740 …bool has_delegation_entitlement = (priv_check_cred(kauth_cred_get(), PRIV_NET_PRIVILEGED_SOCKET_DE… in necp_client_add()
6772 …bool has_custom_protocol_entitlement = (priv_check_cred(kauth_cred_get(), PRIV_NET_CUSTOM_PROTOCOL… in necp_client_add()
9649 …const bool has_resolver_entitlement = (priv_check_cred(kauth_cred_get(), PRIV_NET_VALIDATED_RESOLV… in necp_client_sign()
/xnu-8020.101.4/bsd/netinet/
H A Din_pcb.c190 (error = priv_check_cred(kauth_cred_get(),
898 error = priv_check_cred(cred, in in_pcbbind()
1028 error = priv_check_cred(cred, in in_pcbbind()
/xnu-8020.101.4/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-8020.101.4/bsd/skywalk/core/
H A Dskywalk.c541 int ret = priv_check_cred(cred, priv, 0); in sk_priv_chk()
/xnu-8020.101.4/bsd/security/audit/
H A Daudit_session.c1357 err = priv_check_cred(cred, PRIV_AUDIT_SESSION_PORT, 0); in audit_session_port()
/xnu-8020.101.4/bsd/skywalk/nexus/flowswitch/
H A Dfsw.c931 error = priv_check_cred(cred, in fsw_ctl()

12