[SERVER-29509] shell_history.js should tolerate extended file ACLs Created: 08/Jun/17 Updated: 08/Jan/24 Resolved: 09/Jun/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | 3.4.4, 3.5.8 |
| Fix Version/s: | 3.0.16, 3.2.15, 3.4.6, 3.5.9 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Kevin Pulo | Assignee: | Kevin Pulo |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
*nix |
||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | ALL | ||||||||
| Backport Requested: |
v3.4, v3.2, v3.0
|
||||||||
| Participants: | |||||||||
| Linked BF Score: | 0 | ||||||||
| Description |
|
If jstests/noPassthrough/shell_history.js is running on a system where files can have extended ACL attributes, then the file mode output from GNU ls -l may include a trailing character to indicate the presence of alternate ACLs ('.' (dot) for SELinux or '+' (plus) for other) (reference). However shell_history.js checks for equality of the whole mode string against "-rw-------", which spuriously breaks in the presence of such a trailing character. |
| Comments |
| Comment by Githook User [ 15/Jun/17 ] |
|
Author: {u'username': u'devkev', u'name': u'Kevin Pulo', u'email': u'kevin.pulo@mongodb.com'}Message: (cherry picked from commit 6a85a4b845d2d365dc6f8a06c3c02824dc1909dc) |
| Comment by Githook User [ 15/Jun/17 ] |
|
Author: {u'username': u'devkev', u'name': u'Kevin Pulo', u'email': u'kevin.pulo@mongodb.com'}Message: (cherry picked from commit 6a85a4b845d2d365dc6f8a06c3c02824dc1909dc) |
| Comment by Githook User [ 15/Jun/17 ] |
|
Author: {u'username': u'devkev', u'name': u'Kevin Pulo', u'email': u'kevin.pulo@mongodb.com'}Message: (cherry picked from commit 6a85a4b845d2d365dc6f8a06c3c02824dc1909dc) |
| Comment by Githook User [ 09/Jun/17 ] |
|
Author: {u'username': u'devkev', u'name': u'Kevin Pulo', u'email': u'kevin.pulo@mongodb.com'}Message: |