[SERVER-6380] Close keyFile filedescriptor after reading the security key Created: 10/Jul/12 Updated: 11/Jul/16 Resolved: 31/Jul/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Security |
| Affects Version/s: | None |
| Fix Version/s: | 2.2.0-rc1 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Jared Rosoff | Assignee: | Tad Marshall |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Operating System: | ALL |
| Participants: |
| Description |
|
https://github.com/mongodb/mongo/blob/master/src/mongo/db/security_common.cpp#L44 setUpSecurityKey reads the keyfile, but leaks the filedescriptor when the function ends. We should close the file after reading its value. |
| Comments |
| Comment by auto [ 31/Jul/12 ] |
|
Author: {u'date': u'2012-07-31T11:36:47-07:00', u'email': u'kristina@10gen.com', u'name': u'Kristina'}Message: Merge pull request #274 from samantharitter/
|
| Comment by auto [ 31/Jul/12 ] |
|
Author: {u'date': u'2012-07-31T11:36:47-07:00', u'email': u'kristina@10gen.com', u'name': u'Kristina'}Message: Merge pull request #274 from samantharitter/
|
| Comment by auto [ 31/Jul/12 ] |
|
Author: {u'date': u'2012-07-31T11:27:57-07:00', u'email': u'samantha.ritter@10gen.com', u'name': u'Samantha Ritter'}Message: |