summaryrefslogtreecommitdiff
path: root/src/components/policy
Commit message (Collapse)AuthorAgeFilesLines
* 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-284-8/+11
|
* Avoid integer overflowAlex Kutsan2018-03-232-2/+6
| | | | | Replaced all usaged of device handle with apropriate typedef Assignment device handle to uint32_t leads to integer overflow
* Policy Fix: Remove redundant function call to SaveAppGroupJackLivio2018-02-151-6/+1
|
* Run Style ScriptJackLivio2018-02-142-6/+10
|
* Fix external policy buildJackLivio2018-02-131-1/+1
|
* Merge pull request #1962 from fronneburg/fix/Issue_1961JackLivio2018-02-133-25/+114
|\ | | | | protect pt_ from concurrent access
| * try build fix againFrank2017-12-182-9/+9
| |
| * fix buildFrank2017-12-181-4/+4
| |
| * fix buildFrank2017-12-181-2/+2
| |
| * protect pt_ from concurrent accessFrank2017-12-183-22/+111
| |
* | Merge pull request #1969 from ↵JackLivio2018-02-125-15/+146
|\ \ | | | | | | | | | | | | AByzhynar/fix/PoliciesManager_allows_all_requested_params_in_case_parameters_field_is_empty Fix/policies manager allows all requested params in case parameters field is empty
| * | Add differentiation of parameters absence from emptinessAndriy Byzhynar2017-12-214-15/+139
| | | | | | | | | | | | | | | | | | | | | Added way how to store empty parameters in policy db for further restoring after ingnition off Added empty lines between functions definitions to improve readability
| * | Add SDL behavor handling in case of RPC parameters field exists but emptyAndriy Byzhynar2017-12-151-0/+7
| |/ | | | | | | | | Added check for RPC parameters existence and emptiness Added necessary SDL behaviour for case specified above
* | Delete QT HMIjacobkeeler2018-02-011-6/+0
| |
* | Fixes coding styleAndrey Oleynik (GitHub)2018-01-183-6/+6
| |
* | Changes iAP2 Bluetooth to USB switching flowAndrey Oleynik (GitHub)2018-01-1810-0/+85
| | | | | | | | | | | | | | | | | | | | | | 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 PTU apply for applications with default permissionsAKalinich-Luxoft2017-12-123-6/+39
|/ | | | | | | | | | | | | | | There was a problem in PROPRIETARY flow that SDL does not update permissions for applications with default policies after PTU if application functional group was updated indirectly (through updating of "default" section). Also SDL does not send OnPermissionChange notification in described above case. This fix adds extra check if "default" functional group was updated and there are registered applications with default policies group and also updates them. Similar check was added for sending OnPermissionChange notification.
* Fix case sensitive app name and id comparison (#1614)Andrii Kalinich (GitHub)2017-11-026-35/+96
| | | | | | | | | | | | | | | | | | | * 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-038-72/+136
|\ | | | | | | | | AKalinich-Luxoft/hotfix/fix_default_app_policies_update_after_ptu Fix PTU applying for "default" app policies
| * Fix unit test expectationAKalinich-Luxoft2017-09-271-1/+1
| |
| * Fix PTU applying for default app policy sectionAKalinich-Luxoft2017-09-277-71/+135
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 compilation warning #1789JackLivio2017-09-291-0/+1
| | | | | | | | Changes made in #1789 + compilation fix. Original author @shoamano83
* | Revert "fix: build break with ENABLE_LOG=OFF"revert-1789-fix/build_break_without_logJackLivio2017-09-281-1/+0
| |
* | Merge pull request #1789 from shoamano83/fix/build_break_without_logJackLivio2017-09-281-0/+1
|\ \ | | | | | | fix: build break with ENABLE_LOG=OFF
| * | fix: build break with ENABLE_LOG=OFFSho Amano2017-09-281-0/+1
| |/
* | Fix DISALLOWED response when app has specifically defined policiesAKalinich-Luxoft2017-09-222-2/+8
|/ | | | | | | | | | | | | | | | | | 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-074-6/+19
|\ | | | | | | | | AKalinich-Luxoft/fix/fix_messages_default_language_checking Fix Consumer friendly message default language checking
| * Fix Consumer friendly message default language checkingAKalinich-Luxoft2017-06-194-6/+19
| | | | | | | | | | | | | | | | 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-072-63/+70
|\ \ | | | | | | | | | | | | AKalinich-Luxoft/fix/fix_consumer_friendly_messages_saving Fix Consumer Friendly Messages removing from PT
| * | Fixed logger messages contextAKalinich-Luxoft2017-06-162-8/+8
| | |
| * | Refactoring in SaveConsumerFriendlyMessages functionAKalinich-Luxoft2017-06-152-65/+70
| | | | | | | | | | | | Removed nested if's.
| * | Fix consumer friendly messages removing from PTAKalinich-Luxoft2017-06-151-3/+5
| |/ | | | | | | | | | | In case PTU comes with omitted consumer_friendly_messages param SDL should maintain current consumer_friendly_messages section in Local PT.
* | Merge pull request #1620 from AByzhynar/fix/FixFactoryDefaultsJacob Keeler2017-09-072-7/+2
|\ \ | | | | | | 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-212-7/+2
| |/ | | | | | | | | | | | | | | | | | | | | 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 function GatherAppGroupPrimaryAlexander Kutsan2017-09-062-4/+0
| |
* | Remove unused HaveGroupsChanged functionAlexander Kutsan2017-09-052-49/+0
| |
* | Rename Subject struct to ApplicationOnDeviceAKalinich-Luxoft2017-08-313-17/+12
| | | | | | | | | | 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_regularAKalinich-Luxoft2017-08-307-31/+39
| |
* | Rename Subject struct for policy_externalAKalinich-Luxoft2017-08-304-18/+23
| |
* | Merge pull request #253 from ↵Alexander Kutsan (GitHub)2017-08-306-316/+1370
|\ \ | | | | | | | | | | | | AKalinich-Luxoft/fix/fix_missing_methods_description Add/update missing functions and fields description
| * | Added/updated description in PolicyManager and UsageStatistics classes for ↵AKalinich-Luxoft2017-08-301-130/+652
| | | | | | | | | | | | policy regular
| * | Added/updated description in PolicyManager and UsageStatistics classes for ↵AKalinich-Luxoft2017-08-301-134/+658
| | | | | | | | | | | | policy external
| * | Added/updated description in AccessRemote classes for policy regularAKalinich-Luxoft2017-08-302-26/+30
| | |
| * | Added/updated description in AccessRemote classes for policy externalAKalinich-Luxoft2017-08-302-26/+30
| | |