u 499 src/cron.c user *u; u 517 src/cron.c for (u = db->head; u != NULL; u = u->next) { u 518 src/cron.c for (e = u->crontab; e != NULL; e = e->next) { u 520 src/cron.c job_add(e, u); u 530 src/cron.c user *u; u 566 src/cron.c for (u = db->head; u != NULL; u = u->next) { u 567 src/cron.c for (e = u->crontab; e != NULL; e = e->next) { u 591 src/cron.c job_add(e, u); /*will add job, if it isn't in queue already for NOW. */ u 48 src/cronnext.c void do_command(entry *e, user *u) { u 51 src/cronnext.c (void)u; u 113 src/cronnext.c void printcrontab(user *u) { u 114 src/cronnext.c printf(" - user: \"%s\"\n", u->name); u 115 src/cronnext.c printf(" crontab: %s\n", u->tabname); u 116 src/cronnext.c printf(" system: %d\n", u->system); u 221 src/cronnext.c user *u; u 234 src/cronnext.c for (u = database.head; u; u = u->next) { u 235 src/cronnext.c if (include && !matchuser(u->name, include)) u 237 src/cronnext.c if (exclude && matchuser(u->name, exclude)) u 239 src/cronnext.c if (!(flags & SYSTEM) && u->system) u 243 src/cronnext.c printcrontab(u); u 245 src/cronnext.c for (e = u->crontab; e; e = e->next) u 270 src/cronnext.c user *u; u 285 src/cronnext.c u = load_user(fd, &pw, *additional, *additional, *additional); u 286 src/cronnext.c if (u == NULL) { u 290 src/cronnext.c link_user(&db, u); u 221 src/database.c user *u = NULL; u 247 src/database.c u = find_user(old_db, fname, crond_crontab ? tabname : NULL); /* find user in old_db */ u 249 src/database.c if (u != NULL) { u 253 src/database.c if (u->mtime == mtime) { u 255 src/database.c unlink_user(old_db, u); u 256 src/database.c link_user(new_db, u); u 268 src/database.c unlink_user(old_db, u); u 269 src/database.c free_user(u); u 273 src/database.c u = load_user(crontab_fd, pw, uname, fname, tabname); /* read the file */ u 275 src/database.c if (u != NULL) { u 276 src/database.c u->mtime = mtime; u 277 src/database.c link_user(new_db, u); u 437 src/database.c user *u, *nu; u 441 src/database.c for (u = old_db->head; u != NULL; u = nu) { u 442 src/database.c Debug(DLOAD, ("\t%s\n", u->name)); u 443 src/database.c nu = u->next; u 444 src/database.c unlink_user(old_db, u); u 445 src/database.c free_user(u); u 590 src/database.c void link_user(cron_db * db, user * u) { u 592 src/database.c db->head = u; u 594 src/database.c db->tail->next = u; u 595 src/database.c u->prev = db->tail; u 596 src/database.c u->next = NULL; u 597 src/database.c db->tail = u; u 600 src/database.c void unlink_user(cron_db * db, user * u) { u 601 src/database.c if (u->prev == NULL) u 602 src/database.c db->head = u->next; u 604 src/database.c u->prev->next = u->next; u 606 src/database.c if (u->next == NULL) u 607 src/database.c db->tail = u->prev; u 609 src/database.c u->next->prev = u->prev; u 613 src/database.c user *u; u 615 src/database.c for (u = db->head; u != NULL; u = u->next) u 616 src/database.c if ((strcmp(u->name, name) == 0) u 618 src/database.c || (strcmp(tabname, u->tabname) == 0) u 622 src/database.c return (u); u 46 src/do_command.c void do_command(entry * e, user * u) { u 52 src/do_command.c (long) pid, e->cmd, u->name, u 71 src/do_command.c if (cron_set_job_security_context(e, u, &jobenv) != 0) { u 105 src/funcs.h int cron_set_job_security_context( entry *e, user *u, char ***jobenvp ); u 37 src/job.c user *u; u 42 src/job.c void job_add(entry * e, user * u) { u 50 src/job.c if (j->e == e && j->u == u) u 85 src/job.c j->u = u; u 100 src/job.c do_command(j->e, j->u); u 97 src/security.c static int cron_change_selinux_range(user * u, security_context_t ucontext); u 98 src/security.c static int cron_get_job_range(user * u, security_context_t * ucontextp, u 112 src/security.c int cron_set_job_security_context(entry *e, user *u ATTRIBUTE_UNUSED, u 129 src/security.c if ((!u->system || e->pwd->pw_uid != 0) && (ret = cron_start_pam(e->pwd)) != 0) { u 142 src/security.c if (cron_get_job_range(u, &ucontext, e->envp) < OK) { u 148 src/security.c if (cron_change_selinux_range(u, ucontext) != 0) { u 348 src/security.c cron_get_job_range(user * u, security_context_t * ucontextp, char **jobenv) { u 360 src/security.c if (!(ccon = context_new(u->scontext))) { u 361 src/security.c log_it(u->name, getpid(), "context_new FAILED for MLS_LEVEL", u 368 src/security.c log_it(u->name, getpid(), u 375 src/security.c log_it(u->name, getpid(), "context_str FAILED for MLS_LEVEL", u 382 src/security.c log_it(u->name, getpid(), "strdup FAILED for MLS_LEVEL", range, 0); u 387 src/security.c else if (!u->scontext) { u 391 src/security.c else if (!(*ucontextp = strdup(u->scontext))) { u 392 src/security.c log_it(u->name, getpid(), "strdup FAILED for MLS_LEVEL", range, 0); u 401 src/security.c static int cron_change_selinux_range(user * u, security_context_t ucontext) { u 407 src/security.c if (u->scontext == 0L) { u 409 src/security.c log_it(u->name, getpid(), "NULL security context for user", "", 0); u 413 src/security.c log_it(u->name, getpid(), u 420 src/security.c if (!ucontext || strcmp(u->scontext, ucontext)) { u 421 src/security.c if (!cron_authorize_range(u->scontext, ucontext)) { u 426 src/security.c u->name, (char *) ucontext, u->scontext) >= 0) { u 436 src/security.c (char *) ucontext, u->scontext) >= 0) { u 437 src/security.c log_it(u->name, getpid(), "ERROR", msg, 0); u 447 src/security.c (char *) ucontext, u->scontext) >= 0) { u 448 src/security.c log_it(u->name, getpid(), "WARNING", msg, 0); u 460 src/security.c log_it(u->name, getpid(), "ERROR", msg, 0); u 471 src/security.c log_it(u->name, getpid(), "WARNING", msg, 0); u 44 src/user.c free_user (user * u) { u 47 src/user.c if (!u) { u 51 src/user.c free(u->name); u 52 src/user.c free(u->tabname); u 53 src/user.c for (e = u->crontab; e != NULL; e = ne) { u 58 src/user.c free_security_context(&(u->scontext)); u 60 src/user.c free(u); u 68 src/user.c user *u; u 84 src/user.c if ((u = (user *) malloc (sizeof (user))) == NULL) { u 88 src/user.c memset(u, 0, sizeof(*u)); u 90 src/user.c if (((u->name = strdup(fname)) == NULL) u 91 src/user.c || ((u->tabname = strdup(tabname)) == NULL)) { u 96 src/user.c u->system = pw == NULL; u 112 src/user.c crontab_fd, &u->scontext, tabname) != 0) { u 124 src/user.c e->next = u->crontab; u 125 src/user.c u->crontab = e; u 142 src/user.c free_user(u); u 143 src/user.c u = NULL; u 150 src/user.c return (u);