Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-29509

shell_history.js should tolerate extended file ACLs

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.4.4, 3.5.8
    • Fix Version/s: 3.0.16, 3.2.15, 3.4.6, 3.5.9
    • Component/s: Shell
    • Labels:
      None
    • Environment:
      *nix
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v3.4, v3.2, v3.0
    • 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.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: