| From eafa21825190ed2d01eaaad329b52fcf1a937b32 Mon Sep 17 00:00:00 2001 |
| From: Anand Kandasamy <Anand_Kandasamy@comcast.com> |
| Date: Tue, 17 Aug 2021 14:01:46 -0400 |
| Subject: [PATCH] RDK-28534: Comcast Security Agent changes |
| |
| Source: Comcast |
| Upstream-Status: Inappropriate [Comcast specific] |
| Signed-off-by: Anand Kandasamy <Anand_Kandasamy@comcast.com> |
| Signed-off-by: Karunakaran A <Karunakaran_Amirthalingam@cable.comcast.com> |
| --- |
| SecurityAgent/SecurityAgent.cpp | 5 ++++- |
| 1 file changed, 4 insertions(+), 1 deletion(-) |
| |
| diff --git a/SecurityAgent/SecurityAgent.cpp b/SecurityAgent/SecurityAgent.cpp |
| index b63b0697..791d7d82 100644 |
| --- a/SecurityAgent/SecurityAgent.cpp |
| +++ b/SecurityAgent/SecurityAgent.cpp |
| @@ -105,11 +105,15 @@ namespace Plugin { |
| _skipURL = static_cast<uint8_t>(webPrefix.length()); |
| _servicePrefix = webPrefix.substr(0, webPrefix.find(callsign)); |
| #ifdef USE_THUNDER_R4 |
| - Core::File aclFile(service->PersistentPath() + config.ACL.Value()); |
| + Core::File aclFile("/opt/thunder_acl.json"); |
| #else |
| - Core::File aclFile(service->PersistentPath() + config.ACL.Value(), true); |
| + Core::File aclFile("/opt/thunder_acl.json", true); |
| #endif /* USE_THUNDER_R4 */ |
| |
| + if (aclFile.Exists() == false) { |
| + aclFile = "/etc/thunder_acl.json"; |
| + } |
| + |
| PluginHost::ISubSystem* subSystem = service->SubSystems(); |
| |
| if (aclFile.Exists() == false) { |