/base/security/permission_lite/services/pms/src/ |
D | pms_server_internal.c | 38 int (*GrantPermission)(const char *identifier, const char *permName); 39 int (*RevokePermission)(const char *identifier, const char *permName); 133 char *permName = (char *)ReadString(req, &permLen); in ReplyCheckPermission() local 134 int32_t ret = api->CheckPermission(uid, permName); in ReplyCheckPermission() 135 …HILOG_INFO(HILOG_MODULE_APP, "check permission, [uid: %lld][perm: %s][ret: %d]", uid, permName, re… in ReplyCheckPermission() 147 char *permName = (char *)ReadString(req, &permLen); in ReplyGrantPermission() local 148 int32_t ret = api->GrantPermission(identifier, permName); in ReplyGrantPermission() 149 …INFO(HILOG_MODULE_APP, "grant permission, [id: %s][perm: %s][ret: %d]", identifier, permName, ret); in ReplyGrantPermission() 161 char *permName = (char *)ReadString(req, &permLen); in ReplyRevokePermission() local 162 int32_t ret = api->RevokePermission(identifier, permName); in ReplyRevokePermission() [all …]
|
D | pms_impl.c | 593 static int OnPermissionFileSync(const char *identifier, const char *permName, const enum IsGranted … in OnPermissionFileSync() argument 604 if (strcmp(permissions[i].name, permName) == 0) { in OnPermissionFileSync() 617 static int OnPermissionFlagsFileSync(const char *identifier, const char *permName, const int flags) in OnPermissionFlagsFileSync() argument 628 if (strcmp(permissions[i].name, permName) == 0) { in OnPermissionFlagsFileSync() 641 int GrantPermission(const char *identifier, const char *permName) in GrantPermission() argument 643 if ((identifier == NULL) || (permName == NULL)) { in GrantPermission() 650 ret = ModifyPermission(node, permName, GRANTED); in GrantPermission() 658 return OnPermissionFileSync(identifier, permName, GRANTED); in GrantPermission() 661 int RevokePermission(const char *identifier, const char *permName) in RevokePermission() argument 663 if ((identifier == NULL) || (permName == NULL)) { in RevokePermission() [all …]
|
D | pms_server.c | 118 char *permName = (char *)ReadString(req, &permLen); in ReplyCheckSelfPermission() local 119 int32_t ret = api->CheckPermission(callingUid, permName); in ReplyCheckSelfPermission() 120 …ILOG_MODULE_APP, "check self permission, [uid: %u][perm: %s][ret: %d]", callingUid, permName, ret); in ReplyCheckSelfPermission()
|
/base/security/access_token/services/privacymanager/src/active/ |
D | active_status_callback_manager.cpp | 104 …sCallbackManager::NeedCalled(const std::vector<std::string>& permList, const std::string& permName) in NeedCalled() argument 110 [permName](const std::string& perm) { return perm == permName; }); in NeedCalled() 114 …AccessTokenID tokenId, const std::string& permName, const std::string& deviceId, ActiveChangeType … in ExecuteCallbackAsync() argument 120 "CALLER_TOKENID", tokenId, "PERMISSION_NAME", permName, "REASON", "background call"); in ExecuteCallbackAsync() 131 if (!NeedCalled(permList, permName)) { in ExecuteCallbackAsync() 132 … ACCESSTOKEN_LOG_INFO(LABEL, "tokenId %{public}u, permName %{public}s", tokenId, permName.c_str()); in ExecuteCallbackAsync() 143 resInfo.permissionName = permName; in ExecuteCallbackAsync()
|
/base/security/access_token/services/accesstokenmanager/main/cpp/src/callback/ |
D | callback_manager.cpp | 112 …::CalledAccordingToPermLlist(const std::vector<std::string>& permList, const std::string& permName) in CalledAccordingToPermLlist() argument 118 [permName](const std::string& perm) { return perm == permName; }); in CalledAccordingToPermLlist() 121 void CallbackManager::ExecuteCallbackAsync(AccessTokenID tokenID, const std::string& permName, int3… in ExecuteCallbackAsync() argument 138 !CalledAccordingToPermLlist(scopePtr_->permList, permName)) { in ExecuteCallbackAsync() 140 … "tokenID is %{public}u, permName is %{public}s", tokenID, permName.c_str()); in ExecuteCallbackAsync() 152 resInfo.permissionName = permName; in ExecuteCallbackAsync()
|
/base/security/access_token/services/accesstokenmanager/main/cpp/src/permission/ |
D | permission_validator.cpp | 94 std::string permName = it->permissionName; in FilterInvalidPermissionDef() local 95 if (!IsPermissionDefValid(*it) || permDefSet.count(permName) != 0) { in FilterInvalidPermissionDef() 98 permDefSet.insert(permName); in FilterInvalidPermissionDef() 126 std::string permName = it->permissionName; in FilterInvalidPermissionState() local 128 if (!IsPermissionStateValid(*it) || permStateSet.count(permName) != 0) { in FilterInvalidPermissionState() 132 permStateSet.insert(permName); in FilterInvalidPermissionState()
|
/base/security/permission_lite/interfaces/kits/ |
D | pms_interface.h | 105 int GrantPermission(const char *identifier, const char *permName); 119 int RevokePermission(const char *identifier, const char *permName);
|
/base/security/access_token/frameworks/accesstoken/src/ |
D | permission_state_change_scope_parcel.cpp | 55 std::string permName; in Unmarshalling() local 56 RELEASE_IF_FALSE(in.ReadString(permName), permStateChangeScopeParcel); in Unmarshalling() 57 permStateChangeScopeParcel->scope.permList.emplace_back(permName); in Unmarshalling()
|
/base/security/permission_lite/services/pms/include/ |
D | pms_inner.h | 33 int (*GrantPermission)(const char *identifier, const char *permName); 34 int (*RevokePermission)(const char *identifier, const char *permName);
|
D | pms.h | 47 int GrantPermission(const char *identifier, const char *permName); 49 int RevokePermission(const char *identifier, const char *permName);
|
/base/account/os_account/dfx/hisysevent_adapter/ |
D | hisysevent_adapter.cpp | 44 void ReportPermissionFail(int32_t callerUid, int32_t callerPid, const std::string& permName) in ReportPermissionFail() argument 51 "PERMISSION_NAME", permName); in ReportPermissionFail() 54 ret, callerUid, callerPid, permName.c_str()); in ReportPermissionFail() 59 (void)permName; in ReportPermissionFail()
|
D | hisysevent_adapter.h | 24 void ReportPermissionFail(int32_t callerUid, int32_t callerPid, const std::string& permName);
|
/base/security/access_token/services/privacymanager/include/active/ |
D | active_status_callback_manager.h | 50 bool NeedCalled(const std::vector<std::string>& permList, const std::string& permName); 52 …AccessTokenID tokenId, const std::string& permName, const std::string& deviceId, ActiveChangeType …
|
/base/security/access_token/services/accesstokenmanager/main/cpp/include/callback/ |
D | callback_manager.h | 55 … CalledAccordingToPermLlist(const std::vector<std::string>& permList, const std::string& permName); 56 … void ExecuteCallbackAsync(AccessTokenID tokenID, const std::string& permName, int32_t changeType);
|
/base/account/os_account/services/accountmgr/test/moduletest/app_account/ |
D | at_not_mock_app_account_manager_service_module_test.cpp | 68 std::string permName = ""; variable 69 … int result = g_accountManagerService->GetBundleNameAndCheckPerm(callingUid, bundleName, permName);
|
/base/security/permission_lite/services/pms_client/ |
D | perm_client.c | 67 int (*GrantPermission)(const char *identifier, const char *permName); 68 int (*RevokePermission)(const char *identifier, const char *permName); 359 int GrantPermission(const char *identifier, const char *permName) in GrantPermission() argument 369 WriteString(&request, permName); in GrantPermission() 377 int RevokePermission(const char *identifier, const char *permName) in RevokePermission() argument 387 WriteString(&request, permName); in RevokePermission()
|
/base/sensors/sensor/services/sensor/include/ |
D | client_info.h | 85 void ChangeSensorPerm(AccessTokenID tokenId, const std::string &permName, bool state);
|
/base/security/permission_lite/ |
D | README_zh.md | 65 …a><a name="p878133903516"></a>int GrantPermission(const char *identifier, const char *permName)</p> 70 …<a name="p1617142163517"></a>int RevokePermission(const char *identifier, const char *permName)</p>
|
D | README.md | 50 | int GrantPermission(const char *identifier, const char *permName) | Grants a permission to an app… 51 | int RevokePermission(const char *identifier, const char *permName) | Revokes a permission from an…
|
/base/account/os_account/services/accountmgr/src/appaccount/ |
D | app_account_manager_service.cpp | 822 std::string &bundleName, const std::string &permName) in GetBundleNameAndCheckPerm() argument 829 result = AccountPermissionManager::VerifyPermission(permName); in GetBundleNameAndCheckPerm() 832 permName.c_str(), result); in GetBundleNameAndCheckPerm() 833 ReportPermissionFail(callingUid, IPCSkeleton::GetCallingPid(), permName); in GetBundleNameAndCheckPerm()
|
/base/sensors/sensor/services/sensor/src/ |
D | client_info.cpp | 779 void ClientInfo::ChangeSensorPerm(AccessTokenID tokenId, const std::string &permName, bool state) in ChangeSensorPerm() argument 786 auto it = userGrantPermMap_.find(permName); in ChangeSensorPerm() 788 SEN_HILOGE("Invalid permission name:%{public}s", permName.c_str()); in ChangeSensorPerm()
|
/base/account/os_account/services/accountmgr/include/appaccount/ |
D | app_account_manager_service.h | 112 …tBundleNameAndCheckPerm(int32_t &callingUid, std::string &bundleName, const std::string &permName);
|