Home
last modified time | relevance | path

Searched refs:PERMISSION_COMPONENT_SET (Results 1 – 9 of 9) sorted by relevance

/base/security/access_token/interfaces/innerkits/accesstoken/test/unittest/src/
Dsecurity_component_grant_test.cpp136 … int32_t res = AccessTokenKit::GrantPermission(tokenID, TEST_PERMISSION, PERMISSION_COMPONENT_SET);
141 ASSERT_NE(((static_cast<uint32_t>(flag)) & PERMISSION_COMPONENT_SET), 0);
146 res = AccessTokenKit::RevokePermission(tokenID, TEST_PERMISSION, PERMISSION_COMPONENT_SET);
152 ASSERT_EQ(((static_cast<uint32_t>(flag)) & PERMISSION_COMPONENT_SET), 0);
173 res = AccessTokenKit::GrantPermission(tokenID, TEST_PERMISSION, PERMISSION_COMPONENT_SET);
180 ASSERT_EQ(((static_cast<uint32_t>(flag)) & PERMISSION_COMPONENT_SET), 0);
183 res = AccessTokenKit::RevokePermission(tokenID, TEST_PERMISSION, PERMISSION_COMPONENT_SET);
189 ASSERT_EQ(((static_cast<uint32_t>(flag)) & PERMISSION_COMPONENT_SET), 0);
210 res = AccessTokenKit::GrantPermission(tokenID, TEST_PERMISSION, PERMISSION_COMPONENT_SET);
216 ASSERT_EQ(((static_cast<uint32_t>(flag)) & PERMISSION_COMPONENT_SET), 0);
[all …]
Daccesstoken_kit_test.cpp340 .grantFlags = {PermissionFlag::PERMISSION_COMPONENT_SET}
403 …_SUCCESS, AccessTokenKit::GrantPermission(tokenID, distributedDatasync, PERMISSION_COMPONENT_SET));
/base/security/security_component_manager/services/security_component_service/sa/test/mock/include/
Daccess_token.h43 PERMISSION_COMPONENT_SET = 1 << 4, enumerator
/base/security/security_component_manager/services/security_component_service/sa/sa_main/
Dsec_comp_perm_manager.cpp184 AccessToken::PermissionFlag::PERMISSION_COMPONENT_SET); in GrantAppPermission()
197 AccessToken::PermissionFlag::PERMISSION_COMPONENT_SET); in RevokeAppPermission()
240 AccessToken::PermissionFlag::PERMISSION_COMPONENT_SET); in RevokeAppPermisionsImmediately()
/base/security/access_token/interfaces/innerkits/accesstoken/include/
Daccess_token.h203 PERMISSION_COMPONENT_SET = 1 << 4, enumerator
/base/security/access_token/services/accesstokenmanager/main/cpp/src/permission/
Dpermission_policy_set.cpp110 return GetFlagWithoutSpecifiedElement(grantFlag, PERMISSION_COMPONENT_SET); in GetFlagWroteToDb()
194 return uFlag & PERMISSION_COMPONENT_SET; in IsPermGrantedBySecComp()
368 needToAdd ? (oldFlag | flag) : (oldFlag & (~PERMISSION_COMPONENT_SET)); in SetPermissionFlag()
405 SetPermissionFlag(permissionName, PERMISSION_COMPONENT_SET, isToGrant); in UpdateSecCompGrantedPermList()
425 … perm.grantFlags[0] = GetFlagWithoutSpecifiedElement(perm.grantFlags[0], PERMISSION_COMPONENT_SET); in ClearSecCompGrantedPerm()
Dpermission_manager.cpp393 …((goalGrantFlag & PERMISSION_COMPONENT_SET) != 0) || ((goalGrantFlag & PERMISSION_ALLOW_THIS_TIME)… in GetSelfPermissionState()
/base/security/access_token/frameworks/common/src/
Ddata_validator.cpp100 unmaskedFlag == PermissionFlag::PERMISSION_COMPONENT_SET || in IsPermissionFlagValid()
/base/security/access_token/services/accesstokenmanager/test/unittest/cpp/src/
Daccesstoken_info_manager_test.cpp2357 …ager::GetInstance().GrantPermission(tokenId, "ohos.permission.LOCATION", PERMISSION_COMPONENT_SET);