Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-11902

mi_open race condition

    XMLWordPrintable

Details

    • 5.5.55

    Description

      In one created a MyISAM table with DATA_DIRECTORY or INDEX_DIRECTORY attributes (that is, with symlinks) mi_open() and mi_delete() used the pattern of

      • expand all symlinks with realpath()
      • verify that the true path isn't leading into a datadir
      • open (or, accordingly, delete) the file

      This is race condition prone, one can change the symlink after it was expanded by realpath() but before the file is opened.

      Attachments

        Issue Links

          Activity

            People

              serg Sergei Golubchik
              serg Sergei Golubchik
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.