Lines Matching defs:uc
163 kauth_cred_t uc;
248 * Can process p, with ucred uc, send the signal signum to process q?
249 * uc is refcounted by the caller so internal fileds can be used safely
253 cansignal(proc_t p, kauth_cred_t uc, proc_t q, int signum, int zombie)
270 if (!suser(uc, NULL))
299 if (uc->cr_ruid == my_cred->cr_ruid ||
300 uc->cr_ruid == my_cred->cr_svuid ||
301 kauth_cred_getuid(uc) == my_cred->cr_ruid ||
302 kauth_cred_getuid(uc) == my_cred->cr_svuid ||
303 uc->cr_ruid == kauth_cred_getuid(my_cred) ||
304 kauth_cred_getuid(uc) == kauth_cred_getuid(my_cred)) {
1195 kauth_cred_t uc = kauth_cred_get();
1216 if (!cansignal(cp, uc, p, uap->signum, 0)) {
1269 kauth_cred_t uc = kargp->uc; /* refcounted by the caller safe to use internal fields */
1275 if (cansignal(cp, uc, p, signum, 0) == 0)
1297 kauth_cred_t uc;
1304 uc = kauth_cred_proc_ref(cp);
1313 karg.uc = uc;
1328 (!posix && p == cp) || !cansignal(cp, uc, p, signum, 1))
1350 karg.uc = uc;
1361 kauth_cred_unref(&uc);