Home
last modified time | relevance | path

Searched refs:proc_suser (Results 1 – 25 of 33) sorted by relevance

12

/xnu-8019.80.24/bsd/net/ !
H A Drestricted_in_port.c223 if (proc_suser(current_proc()) != 0 &&
249 if (proc_suser(current_proc()) != 0 &&
276 if (proc_suser(current_proc()) != 0 && in sysctl_restricted_port_test_common()
465 if (task == kernel_task || proc_suser(current_proc()) == 0) { in current_task_can_use_restricted_in_port()
H A Dif.c1807 if ((error = proc_suser(p)) != 0) { in ifioctl_ifdesc()
1865 if ((error = proc_suser(p)) != 0) { in ifioctl_linkparams()
2018 if ((error = proc_suser(p)) != 0) { in ifioctl_throttle()
2245 if ((error = proc_suser(p)) != 0) { in ifioctl_netagent()
2253 if ((error = proc_suser(p)) != 0) { in ifioctl_netagent()
3218 error = proc_suser(p); in ifioctl()
3372 error = proc_suser(p); in ifioctl_ifreq()
3379 error = proc_suser(p); in ifioctl_ifreq()
3443 error = proc_suser(p); in ifioctl_ifreq()
3467 error = proc_suser(p); in ifioctl_ifreq()
[all …]
H A Dif_headless.c1410 error = proc_suser(current_proc()); in headless_ioctl()
H A Dif_fake.c3426 error = proc_suser(current_proc()); in feth_ioctl()
/xnu-8019.80.24/bsd/dev/i386/ !
H A Dcons.c133 int error = proc_suser(p); in cnioctl()
H A Dkm.c120 } else if ((tp->t_state & TS_XCLUDE) && proc_suser(pp)) { in kmopen()
/xnu-8019.80.24/bsd/dev/arm/ !
H A Dcons.c97 int error = proc_suser(p); in cnioctl()
H A Dkm.c97 } else if ((tp->t_state & TS_XCLUDE) && proc_suser(pp)) { in kmopen()
/xnu-8019.80.24/bsd/dev/random/ !
H A Drandomdev.c133 if ((securelevel >= 1) && proc_suser(p)) { in random_open()
/xnu-8019.80.24/bsd/kern/ !
H A Dkern_prot.c1184 if (proc_suser(p) != 0) { in settid()
1287 if (proc_suser(p) != 0 || (tro->tro_flags & TRO_SETUID) != 0) { in settid_with_pid()
1323 if (proc_suser(p) != 0 || (tro->tro_flags & TRO_SETUID) == 0) { in settid_with_pid()
1662 if ((error = proc_suser(p))) { in setlogin()
H A Dkern_newsysctl.c1577 return !proc_suser(req->p); in can_write_experiment_factors()
1740 (error = proc_suser(req->p))) { in sysctl_root()
H A Dvsock_domain.c105 current_task() != kernel_task && proc_suser(current_proc()) != 0) { in vsock_bind_address_if_free()
H A Dsys_generic.c1934 (nfds > nofile && (proc_suser(p) || nfds > FD_SETSIZE))) { in poll_nocancel()
/xnu-8019.80.24/bsd/netinet6/ !
H A Dnd6_send.c176 error = proc_suser(current_proc());
H A Draw_ip6.c977 if ((error = proc_suser(p)) != 0) { in rip6_attach()
H A Dip6_output.c2377 privileged = (proc_suser(p) == 0); in ip6_ctloutput()
/xnu-8019.80.24/bsd/miscfs/routefs/ !
H A Droutefs_ops.c97 if ((error = proc_suser(current_proc())) != 0) { in routefs_mount()
188 if ((error = proc_suser(current_proc())) != 0) { in routefs_unmount()
/xnu-8019.80.24/bsd/nfs/ !
H A Dnfs_lock.c922 error = proc_suser(p); in nfslockdans()
1001 error = proc_suser(p); in nfslockdnotify()
H A Dnfs_syscalls.c546 error = proc_suser(p); in getfh()
855 if (((uap->flag == NFSSVC_NFSD) || (uap->flag == NFSSVC_ADDSOCK)) && ((error = proc_suser(p)))) { in nfssvc()
/xnu-8019.80.24/bsd/sys/ !
H A Dproc.h319 int proc_suser(proc_t p);
/xnu-8019.80.24/bsd/netinet/ !
H A Din_tclass.c1951 error = proc_suser(current_proc());
1999 error = proc_suser(current_proc());
2179 error = proc_suser(current_proc());
2217 error = proc_suser(current_proc());
H A Din.c1226 boolean_t privileged = (proc_suser(p) == 0); in in_control()
H A Dip_output.c2451 priv = (proc_suser(sopt->sopt_p) == 0); in ip_ctloutput()
/xnu-8019.80.24/bsd/dev/ !
H A Dmemdev.c381 error = proc_suser(p); /* Are we superman? */ in mdevioctl()
/xnu-8019.80.24/bsd/dev/vn/ !
H A Dvn.c883 error = proc_suser(p); in vnioctl()

12