Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-1100

mongo shell fails to run scripts owned by other users

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.5.2
    • None
    • None
    • None

    Description

      When trying to run a script owned by another user, the mongo shell fails with the following:

      Fri May 7 11:39:38 Assertion failure L <= 0x7ffffffe scripting/engine.cpp 129
      0x4928ea 0x4961b1 0x49c21f 0x44ab9d 0x44c526 0x7fc80a3c91c4 0x447499
      /usr/bin/mongo(_ZN5mongo12sayDbContextEPKc+0x14a) [0x4928ea]
      /usr/bin/mongo(_ZN5mongo8assertedEPKcS1_j+0x1a1) [0x4961b1]
      /usr/bin/mongo(_ZN5mongo5Scope8execFileERKSsbbbi+0x56f) [0x49c21f]
      /usr/bin/mongo(_Z5_mainiPPc+0x158d) [0x44ab9d]
      /usr/bin/mongo(main+0x26) [0x44c526]
      /lib/libc.so.6(__libc_start_main+0xf4) [0x7fc80a3c91c4]
      /usr/bin/mongo(_ZNSt15basic_streambufIcSt11char_traitsIcEE6xsputnEPKcl+0x71) [0x447499]
      exception: assertion scripting/engine.cpp:129

      An strace shows that the file is being opened with: O_RDONLY|O_CREAT|O_NOATIME
      The NOATIME option is the problem here as it cannot be used on files where the owner does not match the caller.

      Attachments

        Activity

          People

            eliot Eliot Horowitz (Inactive)
            shtylman Roman Shtylman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: