Repository navigation
fix(OSQUERY-004): CU-86akhf8u2 2 review findings across 2 files #78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -176,6 +176,8 @@ void UserEtwSessionRunnable::initUserTraceSession( | |
| void UserEtwSessionRunnable::stopUserTraceSession( | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 𦩠π stopUserTraceSession silently returns on empty session name without logging Added π€ Prompt for AI agentsfix confidence: π’ 95 high β react π/π to teach the reviewer |
||
| const std::string& sessionName) { | ||
| if (sessionName.empty()) { | ||
| LOG(ERROR) << "Failed to stop user trace session - session does not have " | ||
| "a name."; | ||
| return; | ||
| } | ||
|
|
||
|
|
@@ -201,4 +203,4 @@ void UserEtwSessionRunnable::stopUserTraceSession( | |
| LOG(WARNING) << "ControlTrace() failed with error code " << retCtrl; | ||
| } | ||
| } | ||
| } // namespace osquery | ||
| } // namespace osquery | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
𦩠π openbsm.cpp uses LOG(INFO) for a failure condition that should be a warning
In
OpenBSMEventPublisher::configureAuditPipe, changed theLOG(INFO)call logging theAUDITPIPE_SET_QLIMITioctl failure toLOG(WARNING), matching the severity used for the adjacentAUDITPIPE_SET_PRESELECT_MODE,AUDITPIPE_SET_PRESELECT_FLAGS, andAUDITPIPE_SET_PRESELECT_NAFLAGSioctl failure logs.π€ Prompt for AI agents
fix confidence: π’ 95 high β react π/π to teach the reviewer