Text   |  XML   |  ReML   |   Visible Warnings:

File System Race Condition  at master-settings.c:835

No properties have been set. | edit properties
Jump to warning location ↓ warning details...
Show Events | Options

settings_verify

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/master/master-settings.c)expand/collapse
Show more  
 783  static bool settings_verify(struct settings *set)
 784  {
 785          const char *dir;
 786          int facility;
 787   
 788[+]         if (!(set))
 789                  return FALSE;
 790   
 791          set->mail_uid_t = (uid_t)-1;
 792          set->mail_gid_t = (gid_t)-1;
 793          set->mail_priv_gid_t = (gid_t)-1;
 794   
 795          if (*set->mail_uid != '\0') {
 796                  if (!parse_uid(set->mail_uid, &set->mail_uid_t)) {
 797                          i_error("Non-existing mail_uid: %s", set->mail_uid);
 798                          return FALSE;
 799                  }
 800          }
 801          if (*set->mail_gid != '\0') {
 802                  if (!parse_gid(set->mail_gid, &set->mail_gid_t)) {
 803                          i_error("Non-existing mail_gid: %s", set->mail_uid);
 804                          return FALSE;
 805                  }
 806          }
 807          if (*set->mail_privileged_group != '\0') {
 808                  if (!parse_gid(set->mail_privileged_group,
 809                                 &set->mail_priv_gid_t)) {
 810                          i_error("Non-existing mail_privileged_group: %s",
 811                                  set->mail_privileged_group);
 812                          return FALSE;
 813                  }
 814          }
 815   
 816          if (set->protocol != MAIL_PROTOCOL_ANY &&
 817              access(t_strcut(set->mail_executable, ' '), X_OK) < 0) {
 818                  i_error("mail_executable: Can't use %s: %m",
 819                          t_strcut(set->mail_executable, ' '));
 820                  return FALSE;
 821          }
 822   
 823          if (*set->log_path != '\0' && access(set->log_path, W_OK) < 0) {
 824[+]                 dir = get_directory(set->log_path);
 825                  if (access(dir, W_OK) < 0) {
 826                          i_error("log_path: Can't write to directory %s: %m",
 827                                  dir);
 828                          return FALSE;
 829                  }
 830          }
 831   
 832          if (*set->info_log_path != '\0' &&
 833              access(set->info_log_path, W_OK) < 0) {
 834[+]                 dir = get_directory(set->info_log_path);
 835                  if (access(dir, W_OK) < 0) {
Show more  




Change Warning 7827.24626 : File System Race Condition

Priority:
State:
Finding:
Owner:
Note: