[SERVER-56362] Add macOS version to build info Created: 26/Apr/21  Updated: 29/Oct/23  Resolved: 30/Apr/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.0.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Sara Golemon Assignee: Sara Golemon
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-56364 Disable ssl and sslSpecial suites on ... Closed
Documented
is documented by DOCS-14396 Investigate changes in SERVER-56362: ... Closed
Related
related to SERVER-53417 Reenable macOS dynamical builders Closed
Backwards Compatibility: Minor Change
Sprint: Security 2021-05-03
Participants:

 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;



 Comments   
Comment by Githook User [ 30/Apr/21 ]

Author:

{'name': 'Sara Golemon', 'email': 'sara.golemon@mongodb.com', 'username': 'sgolemon'}

Message: SERVER-56362 Add macOS version info to getBuildInfo()
Branch: master
https://github.com/mongodb/mongo/commit/5ff59681de1f16392dd38658598996861b09d44e

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