Lines Matching defs:uid
216 uid_t uid,
226 (me, "looking for uid %d (slot used = %d)\n", uid, used_slot);
228 /* first find the slot with a matching uid */
232 ch->child_uid == uid) {
237 (me, "slot %d found with uid %d\n",
284 ch->child_uid = uid;
509 uid_t uid;
527 uid = ucred_geteuid(uc);
532 if (_whoami == NSCD_MAIN || uid != main_uid) {
534 * I'm main, or uid from door is not correct,
547 if (_whoami == NSCD_FORKER || uid != forker_uid) {
549 * I'm forker, or uid from door is not correct,
645 if (uid != ch->child_uid) {
647 (me, "CHILD IMPOSTER CAUGHT: uid = %d should be %d\n",
648 uid, ch->child_uid);
658 (me, "invalid slot/child state (%d) for uid %d\n",
659 ch->child_state, uid);
804 /* set the uid/gid as assigned by the main nscd */
805 set2uid = f->uid;
876 * with the same PUN uid (i.e., this PUN is
897 uid_t uid,
913 "(uid = %d, gid = %d)\n", doorfd, cslot, uid, gid);
916 f.uid = uid;
975 /* get door client's effective uid and effective gid */
982 (me, "child uid = %d, gid = %d\n", set2uid, set2gid);
1017 (me, "waiting for door (slot = %d, uid = %d, gid = %d)\n",
1053 (me, "returning door %d for slot %d, uid %d, gid = %d\n",
1258 uid_t uid;
1275 /* get door client's effective uid */
1276 uid = ucred_geteuid(uc);
1281 (me, "per user get admin ... (uid = %d)\n", uid);
1284 ch = get_cslot(uid, 1);
1416 static uid_t uid = 0;
1421 if (uid == 0) {
1423 uid = getuid();
1449 info.pr_uid == uid && info.pr_euid == euid)
1494 * if no process running as the PUN uid found, exit