pw 268 src/cronnext.c struct passwd pw; pw 281 src/cronnext.c memset(&pw, 0, sizeof(pw)); pw 282 src/cronnext.c pw.pw_name = *additional; pw 283 src/cronnext.c pw.pw_passwd = ""; pw 284 src/cronnext.c pw.pw_dir = "."; pw 285 src/cronnext.c u = load_user(fd, &pw, *additional, *additional, *additional); pw 99 src/crontab.c static struct passwd *pw; pw 173 src/crontab.c if (getuid() != 0 && cron_start_pam(pw) != PAM_SUCCESS) { pw 219 src/crontab.c if (!(pw = getpwuid(getuid()))) { pw 225 src/crontab.c if (strlen(pw->pw_name) >= sizeof User) { pw 229 src/crontab.c strcpy(User, pw->pw_name); pw 244 src/crontab.c if (MY_UID(pw) != ROOT_UID) { pw 261 src/crontab.c if (!(pw = getpwnam(optarg))) { pw 297 src/crontab.c if (MY_UID(pw) != ROOT_UID) { pw 624 src/crontab.c if (setgid(MY_GID(pw)) < 0) { pw 628 src/crontab.c if (setuid(MY_UID(pw)) < 0) { pw 851 src/crontab.c e = load_entry(tmp, check_error, pw, envp); pw 868 src/crontab.c file_owner = (getgid() == geteuid() && getgid() == getegid()) ? ROOT_UID : pw->pw_uid; pw 73 src/database.c struct passwd *pw, time_t * mtime) { pw 100 src/database.c if (statbuf.st_uid != ROOT_UID && (pw == NULL || pw 101 src/database.c statbuf.st_uid != pw->pw_uid || pw 102 src/database.c strcmp(uname, pw->pw_name) != 0)) { pw 107 src/database.c if (pw && statbuf.st_nlink != 1) { pw 219 src/database.c struct passwd *pw = NULL; pw 230 src/database.c else if ((pw = getpwnam(uname)) == NULL) { pw 239 src/database.c if ((crontab_fd = check_open(tabname, uname, pw, &mtime)) == -1) pw 273 src/database.c u = load_user(crontab_fd, pw, uname, fname, tabname); /* read the file */ pw 80 src/entry.c entry *load_entry(FILE * file, void (*error_func) (), struct passwd *pw, pw 126 src/entry.c if (pw == NULL || pw->pw_uid == 0) pw 278 src/entry.c if (!pw) { pw 290 src/entry.c pw = getpwnam(username); pw 291 src/entry.c if (pw == NULL) { pw 296 src/entry.c pw = &temppw; pw 299 src/entry.c (long) pw->pw_uid, (long) pw->pw_gid)); pw 303 src/entry.c if ((e->pwd = pw_dup(pw)) == NULL) { pw 341 src/entry.c if ((tenvp = env_update_home(e->envp, pw->pw_dir)) == NULL) { pw 370 src/entry.c if (glue_strings(envstr, sizeof envstr, "LOGNAME", pw->pw_name, '=')) { pw 380 src/entry.c if (glue_strings(envstr, sizeof envstr, "USER", pw->pw_name, '=')) { pw 50 src/externs.h #define MY_UID(pw) getuid() pw 51 src/externs.h #define MY_GID(pw) getgid() pw 107 src/funcs.h int cron_open_security_session( struct passwd *pw ); pw 111 src/funcs.h int cron_change_groups( struct passwd *pw ); pw 113 src/funcs.h int cron_change_user_permanently( struct passwd *pw, char *homedir ); pw 127 src/funcs.h int cron_start_pam(struct passwd *pw); pw 63 src/popen.c FILE *cron_popen(char *program, const char *type, struct passwd *pw, char **jobenv) { pw 130 src/popen.c if (cron_change_user_permanently(pw, env_get("HOME", jobenv)) != 0) pw 48 src/pw_dup.c pw_dup(const struct passwd *pw) { pw 55 src/pw_dup.c if (pw->pw_name) { pw 56 src/pw_dup.c nsize = strlen(pw->pw_name) + 1; pw 59 src/pw_dup.c if (pw->pw_passwd) { pw 60 src/pw_dup.c psize = strlen(pw->pw_passwd) + 1; pw 64 src/pw_dup.c if (pw->pw_class) { pw 65 src/pw_dup.c csize = strlen(pw->pw_class) + 1; pw 69 src/pw_dup.c if (pw->pw_gecos) { pw 70 src/pw_dup.c gsize = strlen(pw->pw_gecos) + 1; pw 73 src/pw_dup.c if (pw->pw_dir) { pw 74 src/pw_dup.c dsize = strlen(pw->pw_dir) + 1; pw 77 src/pw_dup.c if (pw->pw_shell) { pw 78 src/pw_dup.c ssize = strlen(pw->pw_shell) + 1; pw 89 src/pw_dup.c (void)memcpy(newpw, pw, sizeof(struct passwd)); pw 91 src/pw_dup.c if (pw->pw_name) { pw 92 src/pw_dup.c (void)memcpy(cp, pw->pw_name, nsize); pw 96 src/pw_dup.c if (pw->pw_passwd) { pw 97 src/pw_dup.c (void)memcpy(cp, pw->pw_passwd, psize); pw 102 src/pw_dup.c if (pw->pw_class) { pw 103 src/pw_dup.c (void)memcpy(cp, pw->pw_class, csize); pw 108 src/pw_dup.c if (pw->pw_gecos) { pw 109 src/pw_dup.c (void)memcpy(cp, pw->pw_gecos, gsize); pw 113 src/pw_dup.c if (pw->pw_dir) { pw 114 src/pw_dup.c (void)memcpy(cp, pw->pw_dir, dsize); pw 118 src/pw_dup.c if (pw->pw_shell) { pw 119 src/pw_dup.c (void)memcpy(cp, pw->pw_shell, ssize); pw 81 src/security.c static int cron_open_pam_session(struct passwd *pw); pw 84 src/security.c log_it(pw->pw_name, getpid(), "PAM ERROR", pam_strerror(pamh, retcode), 0); \ pw 195 src/security.c int cron_start_pam(struct passwd *pw) { pw 198 src/security.c retcode = pam_start("crond", pw->pw_name, &conv, &pamh); pw 212 src/security.c static int cron_open_pam_session(struct passwd *pw) { pw 237 src/security.c int cron_change_groups(struct passwd *pw) { pw 240 src/security.c if (setgid(pw->pw_gid) != 0) { pw 245 src/security.c if (initgroups(pw->pw_name, pw->pw_gid) != 0) { pw 261 src/security.c int cron_change_user_permanently(struct passwd *pw, char *homedir) { pw 262 src/security.c if (setreuid(pw->pw_uid, pw->pw_uid) != 0) { pw 64 src/user.c load_user (int crontab_fd, struct passwd *pw, const char *uname, pw 96 src/user.c u->system = pw == NULL; pw 111 src/user.c if (get_security_context(pw == NULL ? NULL : uname, pw 122 src/user.c e = load_entry(file, log_error, pw, envp);