summaryrefslogtreecommitdiff
path: root/src/components/policy/policy_external/src
Commit message (Collapse)AuthorAgeFilesLines
* Fix infinite PTU when invalid PT, then a valid PT is receivedfix/retry_after_failed_ptujacobkeeler2018-04-161-2/+1
|
* Fix style issuesjacobkeeler2018-04-121-6/+5
|
* Don't force a PTU when an invalid PT is receivedhotfix/invalid_ptu_loopjacobkeeler2018-04-091-2/+8
|
* Additional fixes for 2072fix/load_service_type_as_string_from_backup_ptJackLivio2018-04-041-4/+4
| | | | When loading the policy table from backup sql file, service types must be read in a strings.
* External Proprietary Lock Screen URL FixJackLivio2018-03-292-6/+2
| | | | The service enpoints in the policy table should be saved as strings instead of integers.
* Move checking if app revoked in the begining of check PermissionsAlex Kutsan2018-03-291-11/+11
| | | | | In case if app revoked it should not be checked for any other permissions
* Process setting user concent if group permissions are emptyAlex Kutsan2018-03-291-4/+0
|
* Avoid adding RC groups in external policy flowAlex Kutsan2018-03-291-12/+1
| | | | fixup! Avoid adding RC groups in external policy flow
* Add apropriate logging in policy flowAlex Kutsan2018-03-282-4/+7
|
* Run Style ScriptJackLivio2018-02-141-4/+6
|
* Merge pull request #1962 from fronneburg/fix/Issue_1961JackLivio2018-02-131-14/+67
|\ | | | | protect pt_ from concurrent access
| * try build fix againFrank2017-12-181-6/+6
| |
| * fix buildFrank2017-12-181-4/+4
| |
| * protect pt_ from concurrent accessFrank2017-12-181-12/+65
| |
* | Fixes coding styleAndrey Oleynik (GitHub)2018-01-182-4/+4
| |
* | Changes iAP2 Bluetooth to USB switching flowAndrey Oleynik (GitHub)2018-01-182-0/+31
|/ | | | | | | | | | | These changes update switching flow so now instead of automatic switching start in case of same UUID is detected SDL will wait for external signal from the system to start this flow. Also due to UUID is reliable only while device remains connected (at least on certain systems) SDL now uses Bluetooth MAC and USB serial to manage devices and UUID is used only for detection of devices able to switch their transports. Currently only iAP2 Bluetooth to USB support is implemented.
* Fix case sensitive app name and id comparison (#1614)Andrii Kalinich (GitHub)2017-11-022-19/+42
| | | | | | | | | | | | | | | | | | | * Add COLLATE NOCASE property for application_id and nickname columns and indices Added COLLATE NOCASE property for application_id and nickname columns and indices related to them in order to make them case insensitive for query select/insert/update. Changed policy id case to lower. Because of case sensitive file path all files and directories which contains policy id of related application, will be saved in lower case to keep SDL applications path case insensitive. * Fix loading preloaded PT from JSON file There was additional case when policy table is loading from preloaded JSON file. In this case there was case sensitive loading of app groups.
* Merge pull request #1779 from ↵Jacob Keeler2017-10-033-59/+80
|\ | | | | | | | | AKalinich-Luxoft/hotfix/fix_default_app_policies_update_after_ptu Fix PTU applying for "default" app policies
| * Fix PTU applying for default app policy sectionAKalinich-Luxoft2017-09-273-59/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There was a problem with applying changes for applications which is registered with "default" policies and this policy group was updated after PTU. In this case permissions for already registered applications which is using these groups still have permissions as before update. Also default policy section was not updated after PTU with changes in this section. This issue is reproduced on EXTERNAL_PROPRIETARY flow only. To fix this issue there was removed code in CacheManager, which incorrectly assigns default policies to apps with "default" policies. Also there was a redundant code because default policies is unwrapped in PTU before its applying, so all specific application policies is already have actual new default policy permissions. In this case it is correct to assign to every app his own policies from PTU. Also there was updated logic in ProcessAppPolicyCheckResults() to perform all needed actions once per app, because its possible that results could contain sever results for one app_id.
* | Fix DISALLOWED response when app has specifically defined policiesAKalinich-Luxoft2017-09-221-1/+4
|/ | | | | | | | | | | | | | | | | | This problem mostly related to RC functionality. When SDL receives any RC request, it checks is sending app have REMOTE_CONTROL HMI type. If app does not have such HMI type, SDL disallows such RPC for it. The problem was in CacheManager::GetHMITypes() function, which returns appHMIType array even if it was not initialized(param is not present in policy) so SDL tries to find HMI type in an empty array and that always evaluates to false so SDL decides that current app is not RC app. If appHMITypes is not specified in policies, SDL should search HMI type in array of HMI types, provided by application on its registration. This check works correctly if application has default policies. To fix that problem there was added check in GetHMITypes() to avoid returning of uninitialized array.
* Merge pull request #1624 from ↵Jacob Keeler2017-09-071-5/+6
|\ | | | | | | | | AKalinich-Luxoft/fix/fix_messages_default_language_checking Fix Consumer friendly message default language checking
| * Fix Consumer friendly message default language checkingAKalinich-Luxoft2017-06-191-5/+6
| | | | | | | | | | | | | | | | If “en-us” is not present for any message, the table shall be rejected, PM should log error and shut SDL down. However this works only for external policies. Added missed checks for regular policies. kMandatoryLanguage was renamed to default_language_
* | Merge pull request #1615 from ↵Jacob Keeler2017-09-071-33/+35
|\ \ | | | | | | | | | | | | AKalinich-Luxoft/fix/fix_consumer_friendly_messages_saving Fix Consumer Friendly Messages removing from PT
| * | Fixed logger messages contextAKalinich-Luxoft2017-06-161-4/+4
| | |
| * | Refactoring in SaveConsumerFriendlyMessages functionAKalinich-Luxoft2017-06-151-33/+35
| |/ | | | | | | Removed nested if's.
* | Merge pull request #1620 from AByzhynar/fix/FixFactoryDefaultsJacob Keeler2017-09-071-4/+1
|\ \ | | | | | | Clear persistent data of all registered applications after FACTORY_DEFAULTS and MASTER_RESET
| * | Fix SDL behavior in case of MASTER_RESET & FACTORY_DEFAULTSVeronica Veremjova2017-06-211-4/+1
| |/ | | | | | | | | | | | | | | | | | | | | After SDL receives - BC.OnExitAllApplications(MASTER_RESET) : SDL should clear stored persistent data of all registered applications and revert local PT to preloaded state. - BC.OnExitAllApplications(FACTORY_DEFAULTS): SDL should clear stored persistent data of all registered applications and remove all user consents from local PT.
* | Remove unused HaveGroupsChanged functionAlexander Kutsan2017-09-051-24/+0
| |
* | Rename Subject struct to ApplicationOnDeviceAKalinich-Luxoft2017-08-311-4/+5
| | | | | | | | | | And more Subject structs were renamed to more descriptive name. Also removed unused mocks.
* | Fix SDL build with EXTERNAL_PROPRIETARY flagAKalinich-Luxoft2017-08-311-1/+1
| | | | | | | | | | There was missed one function where Subject structure was not renamed so this fails SDL build with this policy flow.
* | Rename Subject struct for policy_externalAKalinich-Luxoft2017-08-301-5/+5
| |
* | Merge pull request #256 from ↵Alexander Kutsan (GitHub)2017-08-301-0/+3
|\ \ | | | | | | | | | | | | dev-gh/feature/Resources_releasing_additional_cases_and_unsubscription Feature/resources releasing additional cases and unsubscription
| * | Adds debug output of PTU in policy managerAndrey Oleynik2017-08-301-0/+3
| | |
* | | Remove unused and redundant code from policyAndriy Byzhynar2017-08-302-31/+0
|/ /
* | Fix EXTERNAL buildIra Lytvynenko2017-08-233-28/+22
| |
* | Remove primary logic from sql queriesAlexander Kutsan2017-08-222-123/+0
| |
* | Remove Promary RC groupAlexander Kutsan2017-08-224-38/+0
| |
* | Replace CheckAccess with CheckModule for BaseCommandRequestAndrey Oleynik2017-08-212-61/+2
| | | | | | | | Removed unused code after that
* | Removes unused interfaces from AccessRemote classAndrey Oleynik2017-08-211-34/+0
| |
* | Removes unused intefaces from Service classAndrey Oleynik2017-08-211-19/+0
| |
* | Removes obsolete enable/disable interfaces from RCAndrey Oleynik2017-08-212-52/+2
| |
* | Fixes AM and RC unit test after removal, drops obsolete codeAndrey Oleynik2017-08-211-1/+1
| |
* | Removes primary device handling logicAndrey Oleynik2017-08-212-49/+5
| |
* | Removes passenger-related logic from policyAndrey Oleynik2017-08-212-36/+0
| |
* | Removes non-primary RC groups processing from policyAndrey Oleynik2017-08-213-122/+0
| |
* | Removes 'device rank' supportAndrey Oleynik2017-08-211-19/+0
| |
* | Removes unused functionality from CheckAccess() interfaceAndrey Oleynik2017-08-211-7/+1
| |
* | Removes 'groups_nonPrimaryRC' supportAndrey Oleynik2017-08-214-28/+0
| |
* | Removes 'user_consent_passengerRC' supportAndrey Oleynik2017-08-214-58/+7
| |
* | Removes 'country_consent_passengerRC' supportAndrey Oleynik2017-08-215-59/+9
| |