[SERVER-3202] Prevent system.profile from being dropped Created: 05/Jun/11  Updated: 03/Sep/11  Resolved: 03/Sep/11

Status: Closed
Project: Core Server
Component/s: Admin
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Alvin Richards (Inactive) Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Participants:

 Description   

Feature:
Customer want to retain profile / audit information and ensure that they are tamper proof. Presently, the system.profile collection can be dropped if profiling is turned off.

Test case:

> use test
> db.system.profile.drop();
Sun Jun 5 13:02:28 uncaught exception: drop failed:

{ "ns" : "test.system.profile", "errmsg" : "exception: turn off profiling before dropping system.profile collection", "code" : 10087, "ok" : 0 } > db.setProfilingLevel(0); { "was" : 2, "slowms" : 100, "ok" : 1 }

> db.system.profile.drop();
true



 Comments   
Comment by Eliot Horowitz (Inactive) [ 03/Sep/11 ]

profiling shouldn't be used for auditing

Generated at Thu Feb 08 03:02:23 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.