Lines Matching refs:uc
74 static int is_root(int free_uc, char *dc_str, ucred_t **uc);
693 ucred_t *uc = NULL;
805 if (is_root(1, "KILLSERVER", &uc))
816 if (is_root(1, "SETADMIN", &uc))
839 if (is_root(0, "SETCACHE", &uc) &&
840 is_called_from_nscd(ucred_getpid(uc))) {
846 if (uc != NULL)
847 ucred_free(uc);
871 if (is_root(0, "GETSTATUSCHANGE", &uc) &&
872 is_called_from_nscd(ucred_getpid(uc))) {
874 &configInfo, ptr, ucred_getpid(uc));
880 if (uc != NULL)
881 ucred_free(uc);
1603 ucred_t *uc = NULL;
1612 if (is_root_or_all_privs("ADMINMODIFY", &uc) == 0) {