diff options
author | Andreas Nilsson <andreas.nilsson@10gen.com> | 2015-11-06 15:18:38 -0500 |
---|---|---|
committer | Andreas Nilsson <andreas.nilsson@10gen.com> | 2015-11-06 15:22:35 -0500 |
commit | d4f8d4b2a576160348de61f972fa478a845234fd (patch) | |
tree | 3bbf6a24f89dfac1113b7222e6dbc4bc14a1aad4 | |
parent | e81c8bce740deea291cbcb7f4c0652d0ae6af25e (diff) | |
download | mongo-d4f8d4b2a576160348de61f972fa478a845234fd.tar.gz |
SERVER-21278 Remove execute permission bit from mongod.lock
(cherry picked from commit fb09819d6a72bd96f7849f40836896eb7631a544)
-rw-r--r-- | src/mongo/db/storage/storage_engine_lock_file_posix.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/storage/storage_engine_lock_file_posix.cpp b/src/mongo/db/storage/storage_engine_lock_file_posix.cpp index fbb432a84a7..d96fb33c21a 100644 --- a/src/mongo/db/storage/storage_engine_lock_file_posix.cpp +++ b/src/mongo/db/storage/storage_engine_lock_file_posix.cpp @@ -96,7 +96,9 @@ Status StorageEngineLockFile::open() { << ": " << ex.what()); } - int lockFile = ::open(_filespec.c_str(), O_RDWR | O_CREAT, S_IRWXU | S_IRWXG | S_IRWXO); + // Use file permissions 644 + int lockFile = + ::open(_filespec.c_str(), O_RDWR | O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); if (lockFile < 0) { int errorcode = errno; return Status(ErrorCodes::DBPathInUse, |