Home
last modified time | relevance | path

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

/base/security/security_component_manager/services/security_component_service/sa/test/mock/include/
Daccess_token.h42 PERMISSION_GRANTED_BY_POLICY = 1 << 3, enumerator
/base/security/access_token/interfaces/innerkits/accesstoken/include/
Daccess_token.h199 PERMISSION_GRANTED_BY_POLICY = 1 << 3, enumerator
/base/security/access_token/services/accesstokenmanager/main/cpp/src/permission/
Dpermission_policy_set.cpp78 (permOld.grantFlags[0] == PERMISSION_GRANTED_BY_POLICY)) { in UpdatePermStateFull()
188 return (uFlag & PERMISSION_SYSTEM_FIXED) || (uFlag & PERMISSION_GRANTED_BY_POLICY); in IsPermOperatedBySystem()
304 uint32_t newFlag = currFlag | (oldFlag & PERMISSION_GRANTED_BY_POLICY); in UpdateWithNewFlag()
441 if ((oldFlag & PERMISSION_GRANTED_BY_POLICY) != 0) { in ResetUserGrantPermissionStatus()
443 perm.grantFlags[0] = PERMISSION_GRANTED_BY_POLICY; in ResetUserGrantPermissionStatus()
Dpermission_manager.cpp428 … flag = permPolicySet->GetFlagWithoutSpecifiedElement(fullFlag, PERMISSION_GRANTED_BY_POLICY); in GetPermissionFlag()
605 ((flag != PERMISSION_GRANTED_BY_POLICY) && (flag != PERMISSION_SYSTEM_FIXED)))) { in ParamUpdate()
1250 … state.grantFlags[0] = userCancelable ? PERMISSION_GRANTED_BY_POLICY : PERMISSION_SYSTEM_FIXED; in InitPermissionList()
/base/security/access_token/frameworks/common/src/
Ddata_validator.cpp95 flag & (~PermissionFlag::PERMISSION_GRANTED_BY_POLICY); in IsPermissionFlagValid()
/base/security/access_token/interfaces/innerkits/accesstoken/test/unittest/src/
Dapp_installation_optimized_test.cpp321 EXPECT_EQ(permStatList[0].grantFlags[0], PERMISSION_GRANTED_BY_POLICY);
615 EXPECT_EQ(permStatList1[1].grantFlags[0], PERMISSION_GRANTED_BY_POLICY);
990 EXPECT_EQ(state[0].grantFlags[0], PERMISSION_GRANTED_BY_POLICY);
1043 EXPECT_EQ(state[1].grantFlags[0], PERMISSION_USER_FIXED | PERMISSION_GRANTED_BY_POLICY);
Dsecurity_component_grant_test.cpp206 …32_t res = AccessTokenKit::GrantPermission(tokenID, TEST_PERMISSION, PERMISSION_GRANTED_BY_POLICY);
Dshare_permission_with_sandbox_test.cpp290 … = AccessTokenKit::GrantPermission(tokenFullControl, PERMISSION_ALL, PERMISSION_GRANTED_BY_POLICY);
Daccesstoken_kit_test.cpp1564 .grantFlags = {PERMISSION_GRANTED_BY_POLICY | PERMISSION_DEFAULT_FLAG}
1571 .grantFlags = {PERMISSION_GRANTED_BY_POLICY | PERMISSION_USER_FIXED}