Skip to content

fix to prevent firewall restart on a bridgemode_event change#64

Open
akumar0702 wants to merge 9 commits intodevelopfrom
bug/rdkb-64184
Open

fix to prevent firewall restart on a bridgemode_event change#64
akumar0702 wants to merge 9 commits intodevelopfrom
bug/rdkb-64184

Conversation

@akumar0702
Copy link
Copy Markdown

RDKB-64489: [Field][DA]: Observed CujoAgent triggering firewall restart continously in 8.3p8s1

Reason for change: Bridgemode event is triggering a firewall restart, added fix to restart firewall only if the bridemode event value is different.
Test Procedure: set bridgemode to same value multiple times advsec shouldn't restart firewall.
Risks: Low
Signed-off-by: arunkumar_nagulapally@comcast.com

…rt continously in 8.3p8s1

Reason for change: Bridgemode event is triggering a firewall restart, added fix to restart firewall only if the bridemode event value is different.
Test Procedure: set bridgemode to same value multiple times advsec shouldn't restart firewall.
Risks: Low
Signed-off-by: arunkumar_nagulapally@comcast.com
Copilot AI review requested due to automatic review settings April 30, 2026 22:27
@akumar0702 akumar0702 requested review from a team as code owners April 30, 2026 22:27
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 30, 2026

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

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

Prevents repeated firewall restarts caused by repeated bridge_mode sysevent notifications carrying the same value, improving stability of AdvSecurity/CujoAgent behavior on 8.3p8s1.

Changes:

  • Track the previous bridge mode value and early-return when an identical value is received.
  • Add basic validation to reject non-1-character bridge mode values before acting.

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

Comment thread source/AdvSecurityDml/cosa_adv_security_internal.c Outdated
Comment thread source/AdvSecurityDml/cosa_adv_security_internal.c Outdated
Comment thread source/AdvSecurityDml/cosa_adv_security_internal.c Outdated
Comment thread source/AdvSecurityDml/cosa_adv_security_internal.c
@akumar0702
Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

Comment thread source/AdvSecurityDml/cosa_adv_security_internal.c Outdated
Copy link
Copy Markdown
Contributor

@SanthoshGujulvajagadeesh SanthoshGujulvajagadeesh left a comment

Choose a reason for hiding this comment

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

Address copilot review comments and update unit test cases

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 2 out of 2 changed files in this pull request and generated 2 comments.


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

Comment thread source/test/CcspAdvSecurityDmlTest/CcspAdvSecurityInternalTest.cpp Outdated
Comment thread source/test/CcspAdvSecurityDmlTest/CcspAdvSecurityInternalTest.cpp Outdated
Copilot AI review requested due to automatic review settings May 4, 2026 21:27
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 2 out of 2 changed files in this pull request and generated 3 comments.


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

Comment thread source/test/CcspAdvSecurityDmlTest/CcspAdvSecurityInternalTest.cpp Outdated
Comment thread source/AdvSecurityDml/cosa_adv_security_internal.c Outdated
Comment thread source/test/CcspAdvSecurityDmlTest/CcspAdvSecurityInternalTest.cpp Outdated
Copilot AI review requested due to automatic review settings May 5, 2026 18:21
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 3 out of 3 changed files in this pull request and generated 2 comments.


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

Comment thread source/test/CcspAdvSecurityDmlTest/CcspAdvSecurityInternalTest.cpp Outdated
Comment thread source/AdvSecurityDml/cosa_adv_security_internal.h Outdated
Copilot AI review requested due to automatic review settings May 6, 2026 05:06
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 3 out of 3 changed files in this pull request and generated 2 comments.

Comment on lines +22 to +28

extern "C" char prevBridgeMode[2];

class CcspAdvSecurityInternalTestFixture : public ::testing::Test {
protected:
void SetUp() override {
prevBridgeMode[0] = '\0';
Comment on lines +22 to +25
#ifndef UNIT_TEST_DOCKER_SUPPORT
#define STATIC static
#else
#define STATIC
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.

3 participants