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

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

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.3.0
    • None
    • None
    • None
    • Fully Compatible
    • Security 2022-02-07, Security 2022-02-21
    • 52

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: