Text   |  XML   |  ReML   |   Visible Warnings:

File System Race Condition  at virtual-storage.c:396

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

virtual_list_delete_mailbox

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/plugins/virtual/virtual-storage.c)expand/collapse
Show more  
 457  virtual_list_delete_mailbox(struct mailbox_list *list, const char *name)
 458  {
 459          struct virtual_storage *storage = VIRTUAL_LIST_CONTEXT(list);
 460          struct stat st;
 461          const char *src;
 462   
 463          /* Make sure the indexes are closed before trying to delete the 
 464             directory that contains them. It can still fail with some NFS 
 465             implementations if indexes are opened by another session, but 
 466             that can't really be helped. */
 467          index_storage_destroy_unrefed();
 468   
 469          /* delete the index and control directories */
 470          if (storage->list_module_ctx.super.delete_mailbox(list, name) < 0)
 471                  return -1;
 472   
 473          /* check if the mailbox actually exists */
 474[+]         src = mailbox_list_get_path(list, name, MAILBOX_LIST_PATH_TYPE_MAILBOX);
 475          if (stat(src, &st) != 0 && errno == ENOENT) {
 476                  mailbox_list_set_error(list, MAIL_ERROR_NOTFOUND,
 477                          T_MAIL_ERR_MAILBOX_NOT_FOUND(name));
 478                  return -1;
 479          }
 480   
 481[+]         return virtual_delete_nonrecursive(list, src, name);
expand/collapse

virtual_delete_nonrecursive

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/plugins/virtual/virtual-storage.c)expand/collapse
Show more  
 387  virtual_delete_nonrecursive(struct mailbox_list *list, const char *path,
 388                              const char *name)
 389  {
 390          DIR *dir;
 391          struct dirent *d;
 392          string_t *full_path;
 393          unsigned int dir_len;
 394          bool unlinked_something = FALSE;
 395   
 396          dir = opendir(path);
Show more  
Show more  




Change Warning 8148.25732 : File System Race Condition

Priority:
State:
Finding:
Owner:
Note: