Home
last modified time | relevance | path

Searched refs:permName (Results 1 – 22 of 22) sorted by relevance

/base/security/permission_lite/services/pms/src/
Dpms_server_internal.c38 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 …]
Dpms_impl.c593 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 …]
Dpms_server.c118 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/
Dactive_status_callback_manager.cpp104 …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/
Dcallback_manager.cpp112 …::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/
Dpermission_validator.cpp94 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/
Dpms_interface.h105 int GrantPermission(const char *identifier, const char *permName);
119 int RevokePermission(const char *identifier, const char *permName);
/base/security/access_token/frameworks/accesstoken/src/
Dpermission_state_change_scope_parcel.cpp55 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/
Dpms_inner.h33 int (*GrantPermission)(const char *identifier, const char *permName);
34 int (*RevokePermission)(const char *identifier, const char *permName);
Dpms.h47 int GrantPermission(const char *identifier, const char *permName);
49 int RevokePermission(const char *identifier, const char *permName);
/base/account/os_account/dfx/hisysevent_adapter/
Dhisysevent_adapter.cpp44 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()
Dhisysevent_adapter.h24 void ReportPermissionFail(int32_t callerUid, int32_t callerPid, const std::string& permName);
/base/security/access_token/services/privacymanager/include/active/
Dactive_status_callback_manager.h50 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/
Dcallback_manager.h55 … 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/
Dat_not_mock_app_account_manager_service_module_test.cpp68 std::string permName = ""; variable
69 … int result = g_accountManagerService->GetBundleNameAndCheckPerm(callingUid, bundleName, permName);
/base/security/permission_lite/services/pms_client/
Dperm_client.c67 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/
Dclient_info.h85 void ChangeSensorPerm(AccessTokenID tokenId, const std::string &permName, bool state);
/base/security/permission_lite/
DREADME_zh.md65 …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>
DREADME.md50 | 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/
Dapp_account_manager_service.cpp822 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/
Dclient_info.cpp779 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/
Dapp_account_manager_service.h112 …tBundleNameAndCheckPerm(int32_t &callingUid, std::string &bundleName, const std::string &permName);