Skip to content

RDKB-64617: RDKB-65225, RDKB-65227 Set Default RFC values on Fully Deployed RFC Features (Adv…#81

Open
akumar0702 wants to merge 7 commits into
developfrom
feature/RDKB-64617
Open

RDKB-64617: RDKB-65225, RDKB-65227 Set Default RFC values on Fully Deployed RFC Features (Adv…#81
akumar0702 wants to merge 7 commits into
developfrom
feature/RDKB-64617

Conversation

@akumar0702
Copy link
Copy Markdown
Contributor

@akumar0702 akumar0702 commented May 27, 2026

Reason for change: enable Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Feature.AdvanceSecurityCujoTelemetry.Enable & Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Feature.AdvanceSecurityCujoTracer.Enable to true

Test Procedure: Ensure default value persists on FR scenario's and no functionality issue observed.
Risks: Low
Signed-off-by: arunkumar_nagulapally@comcast.com

…anceSecurity)

Reason for change:  enable Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Feature.AdvanceSecurityCujoTelemetry.Enable & Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Feature.AdvanceSecurityCujoTracer.Enable to true

Test Procedure: Ensure default value persists on FR scenario's and no functionality issue observed.
Risks: Low
Signed-off-by: arunkumar_nagulapally@comcast.com
Copilot AI review requested due to automatic review settings May 27, 2026 18:48
@akumar0702 akumar0702 requested review from a team as code owners May 27, 2026 18:48
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates RFC initialization behavior so Cujo Tracer and Cujo Telemetry default to enabled when their syscfg values are missing or disabled.

Changes:

  • Adds a reusable helper to apply default-TRUE behavior for RFC syscfg-backed booleans.
  • Uses the helper for Cujo Tracer and Cujo Telemetry during CosaSecurityInitialize.
  • Adds unit tests for the helper’s defaulting and no-write paths.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
source/AdvSecurityDml/cosa_adv_security_internal.c Applies default-TRUE behavior for Cujo Tracer/Telemetry and adds the shared helper.
source/AdvSecurityDml/cosa_adv_security_internal.h Declares the new helper.
source/test/CcspAdvSecurityDmlTest/CcspAdvSecurityInternalTest.cpp Adds tests for the helper behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

{
g_pAdvSecAgent->pAdvSecUserSpace_RFC->bEnable = ValueASUSERSPACE_RFC;
}
g_pAdvSecAgent->pAdvSecUserSpace_RFC->bEnable = ValueASUSERSPACE_RFC;
{
ANSC_STATUS ret = ANSC_STATUS_SUCCESS;

if ((getStatus != ANSC_STATUS_SUCCESS) || (value == 0))
Copilot AI review requested due to automatic review settings May 29, 2026 16:46
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

{
ANSC_STATUS ret = ANSC_STATUS_SUCCESS;

if (getStatus != ANSC_STATUS_SUCCESS)
CcspTraceInfo(("AdvSecUserSpace_RFC is defaulted to TRUE, cannot be set to FALSE \n"));
return FALSE;
}
returnStatus = CosaAdvSecUserSpaceDeInit(g_pAdvSecAgent->pAdvSecUserSpace_RFC);
@akumar0702 akumar0702 force-pushed the feature/RDKB-64617 branch from 56e189d to 01d21c2 Compare May 29, 2026 18:24
Comment thread source/AdvSecurityDml/cosa_adv_security_dml.c
@akumar0702 akumar0702 changed the title RDKB-64617 Set Default RFC values on Fully Deployed RFC Features (Adv… RDKB-64617: RDKB-65225, RDKB-65227 Set Default RFC values on Fully Deployed RFC Features (Adv… Jun 2, 2026
Copilot AI review requested due to automatic review settings June 2, 2026 22:05
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

Comment on lines +2287 to +2306
EXPECT_CALL(*g_safecLibMock, _sprintf_s_chk(_, _, _, _))
.Times(1)
.WillOnce(Return(0));
EXPECT_CALL(*g_syscfgMock, syscfg_set_nns(StrEq(AdvSecCujoTelemetryEnabled), _))
.Times(1)
.WillOnce(Return(0));
EXPECT_CALL(*g_syscfgMock, syscfg_commit())
.Times(1)
.WillOnce(Return(0));

ANSC_STATUS status = CosaAdvSecApplyRfcDefaultTrue(
(char*)AdvSecCujoTelemetryEnabled,
ANSC_STATUS_SUCCESS,
0,
&enable,
"AdvSecCujoTelemetry_RFCEnable");

EXPECT_EQ(status, ANSC_STATUS_SUCCESS);
EXPECT_EQ(enable, TRUE);
}
Comment on lines +1402 to +1421
returnStatus = CosaAdvSecApplyRfcDefaultTrue(
g_AdvSecCujoTracerEnabled,
getCujoTracerRfcStatus,
ValueASCUJOTRACER_RFC,
&g_pAdvSecAgent->pAdvSecCujoTracer_RFC->bEnable,
"AdvSecCujoTracer_RFCEnable");

returnStatus = CosaAdvSecApplyRfcDefaultTrue(
g_AdvSecCujoTelemetryEnabled,
getCujoTelemetryRfcStatus,
ValueASCUJOTELEMETRY_RFC,
&g_pAdvSecAgent->pAdvSecCujoTelemetry_RFC->bEnable,
"AdvSecCujoTelemetry_RFCEnable");

returnStatus = CosaAdvSecApplyRfcDefaultTrue(
g_AdvSecUserSpaceEnabled,
getUserSpaceRfcStatus,
ValueASUSERSPACE_RFC,
&g_pAdvSecAgent->pAdvSecUserSpace_RFC->bEnable,
"AdvSecUserSpace_RFCEnable");
Comment on lines +3114 to +3117
if( bValue )
returnStatus = CosaAdvSecUserSpaceInit(g_pAdvSecAgent->pAdvSecUserSpace_RFC);
else
{
//returnStatus = CosaAdvSecUserSpaceDeInit(g_pAdvSecAgent->pAdvSecUserSpace_RFC);
CcspTraceInfo(("AdvSecUserSpace_RFC is defaulted to TRUE, cannot be set to FALSE \n"));
return FALSE;
}
returnStatus = CosaAdvSecUserSpaceDeInit(g_pAdvSecAgent->pAdvSecUserSpace_RFC);
Copilot AI review requested due to automatic review settings June 3, 2026 17:32
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

Comment thread source/AdvSecurityDml/cosa_adv_security_internal.c
Comment thread source/AdvSecurityDml/cosa_adv_security_dml.c Outdated
Comment thread source/AdvSecurityDml/cosa_adv_security_dml.c Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants