[SERVER-63096] Fix log_rotate_command_errors.js failure if running as "root" user Created: 28/Jan/22 Updated: 29/Oct/23 Resolved: 07/Feb/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 5.3.0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Erwin Pe | Assignee: | Erwin Pe |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Backwards Compatibility: | Fully Compatible | ||||
| Sprint: | Security 2022-02-07, Security 2022-02-21 | ||||
| Participants: | |||||
| Linked BF Score: | 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. |
| Comments |
| Comment by Githook User [ 07/Feb/22 ] |
|
Author: {'name': 'Erwin Pe', 'email': 'erwin.pe@mongodb.com', 'username': 'erwee'}Message: |