[SERVER-1100] mongo shell fails to run scripts owned by other users Created: 07/May/10  Updated: 12/Jul/16  Resolved: 07/May/10

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 1.5.2

Type: Bug Priority: Major - P3
Reporter: Roman Shtylman Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 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.



 Comments   
Comment by auto [ 07/May/10 ]

Author:

{'login': 'erh', 'name': 'Eliot Horowitz', 'email': 'eliot@10gen.com'}

Message: don't use NOATIME with read only SERVER-1100
http://github.com/mongodb/mongo/commit/5d0ad1504e09c29037488bdae8484804d0995311

Generated at Thu Feb 08 02:56:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.