[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:
Backports
Related
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: SERVER-29509 tolerate extended file ACLs in shell history jstest

(cherry picked from commit 6a85a4b845d2d365dc6f8a06c3c02824dc1909dc)
Branch: v3.0
https://github.com/mongodb/mongo/commit/094684a2c388edf655a5830755c77508c3b7cbbb

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: SERVER-29509 tolerate extended file ACLs in shell history jstest

(cherry picked from commit 6a85a4b845d2d365dc6f8a06c3c02824dc1909dc)
Branch: v3.2
https://github.com/mongodb/mongo/commit/4ab6ccc79febd7b3e76c792fa67efaae4060dc05

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: SERVER-29509 tolerate extended file ACLs in shell history jstest

(cherry picked from commit 6a85a4b845d2d365dc6f8a06c3c02824dc1909dc)
Branch: v3.4
https://github.com/mongodb/mongo/commit/2bda80db0aab45d2ffab9a9c18c4258d498fcceb

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: SERVER-29509 tolerate extended file ACLs in shell history jstest
Branch: master
https://github.com/mongodb/mongo/commit/6a85a4b845d2d365dc6f8a06c3c02824dc1909dc

Generated at Thu Feb 08 04:21:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.