[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:
Depends
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: SERVER-63096 Fix log_rotate_command_errors.js failure if running as root user
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/db79693a5d4f74eb7b875e89f1bc158fd270c4b8

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