Lines Matching refs:callerTokenId
76 bool PermissionVerification::IsSACallByTokenId(uint32_t callerTokenId) const
79 if (callerTokenId == 0) {
80 callerTokenId = GetCallingTokenID();
82 auto tokenType = Security::AccessToken::AccessTokenKit::GetTokenTypeFlag(callerTokenId);
97 bool PermissionVerification::IsShellCallByTokenId(uint32_t callerTokenId) const
100 if (callerTokenId == 0) {
101 callerTokenId = GetCallingTokenID();
103 auto tokenType = Security::AccessToken::AccessTokenKit::GetTokenTypeFlag(callerTokenId);
447 bool PermissionVerification::IsSystemAppCallByTokenId(uint32_t callerTokenId) const
449 if (callerTokenId == 0) {
452 auto tokenType = Security::AccessToken::AccessTokenKit::GetTokenTypeFlag(callerTokenId);
458 auto ret = Security::AccessToken::AccessTokenKit::GetHapTokenInfo(callerTokenId, hapInfo);
463 uint64_t fullCallerTokenId = (static_cast<uint64_t>(hapInfo.tokenAttr) << TOKEN_ID_BIT_SIZE) + callerTokenId;