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

Add macOS version to build info

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0.0-rc0
    • Component/s: None
    • Labels:
    • Backwards Compatibility:
      Minor Change
    • Sprint:
      Security 2021-05-03

      Description

      getBuildInfo() on a mac currently returns only `macOS` without specifics about the version. It would be able to detect quirks (such as TLS handling on 10.15+) during jstests, so add the version to the build info output.

       

      It appears we can use sysctlbyname to pull this information, something like:
       

      char buffer[64];
      size_t buffer_len = sizeof(buffer) - 1;
      sysctlbyname("kern.osproductversion", buffer, &buffer_len, nullptr, 0);
      buffer[buffer_len] = 0;
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sara.golemon Sara Golemon
              Reporter:
              sara.golemon Sara Golemon
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: