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

Fix log_rotate_command_errors.js failure if running as "root" user

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.3.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • Security 2022-02-07, Security 2022-02-21
    • 52

      The testPermissionDeniedOnRotation() test in log_rotate_command_errors.js assumes that the server is running as a non-root user, so that it can remove write permissions on the directory containing audit.log and cause the server to fail when renaming the audit.log file on rotation. This does not work on some build variants that runs the test as the "root" user, so this test should not run if the user is root.

            Assignee:
            erwin.pe@mongodb.com Erwin Pe
            Reporter:
            erwin.pe@mongodb.com Erwin Pe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: