Lines Matching defs:thread
36 * Kernel Authorization framework: Management of process/thread credentials
84 * Note: Does *NOT* currently include per-thread credential changes
283 * the resolver will it to the submitted thread when appropriate.
475 thread_t thread;
485 * If we lost a race with another thread/memberd restarting, then we
487 * restarting, then the msleep0() will error out here, as our thread
498 thread = current_thread();
499 ut = get_bsdthread_info(thread);
520 * a request. This is specifically used so that our per thread
580 thread_t thread = current_thread();
581 struct uthread *ut = get_bsdthread_info(thread);
2328 * per process, one per thread, one per vnode cache entry, and
2368 * Description: Get the current thread's effective UID.
2373 * current thread
2385 * Description: Get the current thread's real UID.
2390 * thread
2402 * Description: Get the current thread's effective GID.
2407 * current thread
2419 * Description: Get the current thread's real GID.
2424 * thread
2436 * Description: Returns a pointer to the current thread's credential
2440 * Returns: (kauth_cred_t) Pointer to the current thread's
2444 * caller MUST NOT do anything that would let the thread's
2464 panic("thread wants credential but has no BSD thread info");
2474 panic("thread wants credential but has no BSD process");
2493 * in the case that the process thread may have been changed
2494 * since the last time the thread entered the kernel. It is
2514 * Description: Takes a reference on the current thread's credential, and then
2519 * Returns: (kauth_cred_t) Pointer to the current thread's
2544 panic("%s - thread wants credential but has no BSD thread info", __FUNCTION__);
2546 panic("%s - thread wants credential but has no BSD process", __FUNCTION__);
2556 /* take reference for new cred in thread */
3028 * This code is only ever called from the per-thread credential
3029 * code path in the "set per thread credential" case; and in
3321 * We need to protect for a race where another thread
3396 * We need to protect for a race where another thread