/base/security/access_token/tools/accesstoken/src/ |
D | to_string.cpp | 50 for (const auto& perm : permissionRecords) { in PermissionUsedRecordToString() local 55 infos.append(R"( "rejectCount": )" + std::to_string(perm.rejectCount) + ",\n"); in PermissionUsedRecordToString() 56 … infos.append(R"( "lastAccessTime": )" + std::to_string(perm.lastAccessTime) + ",\n"); in PermissionUsedRecordToString() 57 … infos.append(R"( "lastRejectTime": )" + std::to_string(perm.lastRejectTime) + ",\n"); in PermissionUsedRecordToString() 58 …infos.append(R"( "lastAccessDuration": )" + std::to_string(perm.lastAccessDuration) + ",\… in PermissionUsedRecordToString() 59 ToString::DetailUsedRecordToString(true, perm.accessRecords, infos); in PermissionUsedRecordToString() 60 ToString::DetailUsedRecordToString(false, perm.rejectRecords, infos); in PermissionUsedRecordToString()
|
/base/security/access_token/frameworks/privacy/src/ |
D | permission_used_request_parcel.cpp | 30 for (const auto& perm : this->request.permissionList) { in Marshalling() 31 RETURN_IF_FALSE(out.WriteString(perm)); in Marshalling() 55 std::string perm; in Unmarshalling() local 56 RELEASE_IF_FALSE(in.ReadString(perm), requestParcel); in Unmarshalling() 57 requestParcel->request.permissionList.emplace_back(perm); in Unmarshalling()
|
/base/hiviewdfx/hidumper/utils/native/src/ |
D | permission.cpp | 19 bool Permission::CheckSelfPermission(const string& perm __attribute__((__unused__))) in CheckSelfPermission() argument 24 bool Permission::CheckCallingPermission(const string& perm __attribute__((__unused__))) in CheckCallingPermission() argument
|
/base/hiviewdfx/hidumper/utils/native/include/ |
D | permission.h | 22 static bool CheckSelfPermission(const std::string& perm); 23 static bool CheckCallingPermission(const std::string& perm);
|
/base/powermgr/power_manager/utils/permission/src/ |
D | permission.cpp | 142 bool Permission::IsPermissionGranted(const std::string& perm) in IsPermissionGranted() argument 149 perm.c_str(), static_cast<int32_t>(type), pid, uid); in IsPermissionGranted() 153 result = AccessTokenKit::VerifyAccessToken(tokenId, perm); in IsPermissionGranted() 165 perm.c_str(), static_cast<int32_t>(type), pid, uid); in IsPermissionGranted() 171 bool Permission::IsSystemHapPermGranted(const std::string& perm) in IsSystemHapPermGranted() argument 173 return IsSystemHap() && IsPermissionGranted(perm); in IsSystemHapPermGranted()
|
/base/powermgr/power_manager/utils/permission/include/ |
D | permission.h | 30 static bool IsPermissionGranted(const std::string& perm); 31 static bool IsSystemHapPermGranted(const std::string& perm);
|
/base/security/access_token/services/accesstokenmanager/main/cpp/src/permission/ |
D | permission_policy_set.cpp | 147 for (const auto& perm : permStateList_) { in VerifyPermissStatus() local 148 if (perm.permissionName == permissionName) { in VerifyPermissStatus() 149 if (perm.isGeneral) { in VerifyPermissStatus() 150 return perm.grantStatus[0]; in VerifyPermissStatus() 173 for (const auto& perm : permStateList_) { in QueryPermissionFlag() local 174 if (perm.permissionName == permissionName) { in QueryPermissionFlag() 175 if (perm.isGeneral) { in QueryPermissionFlag() 176 uint32_t oldFlag = static_cast<uint32_t>(perm.grantFlags[0]); in QueryPermissionFlag() 220 for (auto& perm : permStateList_) { in ResetUserGrantPermissionStatus() local 221 if (perm.isGeneral) { in ResetUserGrantPermissionStatus() [all …]
|
D | permission_manager.cpp | 89 for (const auto& perm : permFilterList) { in AddDefPermissions() local 91 PermissionDefinitionCache::GetInstance().Update(perm); in AddDefPermissions() 95 if (!PermissionDefinitionCache::GetInstance().HasDefinition(perm.permissionName)) { in AddDefPermissions() 96 PermissionDefinitionCache::GetInstance().Insert(perm, tokenId); in AddDefPermissions() 99 TransferPermissionDefToString(perm).c_str()); in AddDefPermissions() 236 for (const auto& perm : tmpList) { in GetReqPermissions() local 238 GetDefPermission(perm.permissionName, permDef); in GetReqPermissions() 240 reqPermList.emplace_back(perm); in GetReqPermissions() 260 …r = std::find_if(permsList.begin(), permsList.end(), [permState](const PermissionStateFull& perm) { in GetSelfPermissionState() argument 261 return permState.permissionName == perm.permissionName; in GetSelfPermissionState() [all …]
|
/base/startup/init/services/init/ |
D | init_service_file.c | 42 INIT_LOGV("File path =%s . file flags =%d, file perm =%u ", path, file->flags, file->perm); in CreateFile() 47 int fd = open(path, file->flags | O_CREAT, file->perm); in CreateFile() 51 INIT_CHECK_ONLY_ELOG(chmod(path, file->perm) >= 0, "Failed chmod err=%d", errno); in CreateFile()
|
D | init_service_socket.c | 115 if (fchmodat(AT_FDCWD, addr.addrun.sun_path, sockopt->perm, AT_SYMLINK_NOFOLLOW)) { in SetSocketOptionAndBind() 129 sockopt->perm, sockopt->uid, sockopt->gid, sockopt->option); in CreateSocket()
|
/base/useriam/user_auth_framework/test/unittest/services/mocks/ |
D | mock_ipc_common.cpp | 79 void IpcCommon::AddPermission(Permission perm) in AddPermission() argument 81 permSet_.insert(perm); in AddPermission()
|
D | mock_ipc_common.h | 45 static void AddPermission(Permission perm);
|
/base/security/access_token/interfaces/innerkits/token_callback/src/ |
D | token_callback_stub.cpp | 57 std::string perm = to_utf8(u16Perm); in OnRemoteRequest() local 58 permList.emplace_back(perm); in OnRemoteRequest()
|
/base/startup/init/services/init/include/ |
D | init_service_file.h | 39 mode_t perm; // Setting permissions member
|
D | init_service_socket.h | 65 mode_t perm; // Setting permissions member
|
/base/security/access_token/interfaces/innerkits/accesstoken/src/ |
D | accesstoken_manager_client.cpp | 84 PermissionDef perm = permParcel.permissionDef; in GetDefPermissions() local 85 permList.emplace_back(perm); in GetDefPermissions() 101 PermissionStateFull perm = permParcel.permStatFull; in GetReqPermissions() local 102 reqPermList.emplace_back(perm); in GetReqPermissions() 133 for (const auto& perm : permList) { in GetSelfPermissionsState() local 135 permParcel.permsState = perm; in GetSelfPermissionsState() 141 PermissionListState perm = parcelList[i].permsState; in GetSelfPermissionsState() local 142 permList[i].state = perm.state; in GetSelfPermissionsState()
|
/base/security/access_token/services/privacymanager/src/database/ |
D | data_translator.cpp | 51 for (const auto& perm : request.permissionList) { in TranslationIntoGenericValues() local 53 if (Constant::TransferPermissionToOpcode(perm, opCode)) { in TranslationIntoGenericValues()
|
/base/startup/init/test/unittest/init/ |
D | service_file_unittest.cpp | 48 fileOpt->perm = 0770;
|
D | service_socket_unittest.cpp | 51 sockopt->perm = 0660;
|
/base/security/access_token/services/privacymanager/src/record/ |
D | permission_record_manager.cpp | 353 std::string perm; in FindRecordsToUpdateAndExecuted() local 354 Constant::TransferOpcodeToPermission(it->opCode, perm); in FindRecordsToUpdateAndExecuted() 355 if (!GetGlobalSwitchStatus(perm)) { in FindRecordsToUpdateAndExecuted() 361 … if ((perm == CAMERA_PERMISSION_NAME) && (status == PERM_ACTIVE_IN_BACKGROUND) && (!isShow)) { in FindRecordsToUpdateAndExecuted() 363 camPermList.emplace_back(perm); in FindRecordsToUpdateAndExecuted() 366 permList.emplace_back(perm); in FindRecordsToUpdateAndExecuted() 376 …EN_LOG_DEBUG(LABEL, "tokenId %{public}d get target permission %{public}s.", tokenId, perm.c_str()); in FindRecordsToUpdateAndExecuted() 397 for (const auto& perm : permList) { in NotifyAppStateChange() local 398 CallbackExecute(tokenId, perm, status); in NotifyAppStateChange()
|
/base/security/access_token/services/privacymanager/src/active/ |
D | active_status_callback_manager.cpp | 108 [permName](const std::string& perm) { return perm == permName; }); in NeedCalled() argument
|
/base/security/access_token/services/accesstokenmanager/main/cpp/src/callback/ |
D | callback_manager.cpp | 116 [permName](const std::string& perm) { return perm == permName; }); in CalledAccordingToPermLlist() argument
|
/base/security/access_token/services/accesstokenmanager/main/cpp/src/service/ |
D | accesstoken_manager_service.cpp | 124 for (const auto& perm : permVec) { in GetDefPermissions() local 126 permPrcel.permissionDef = perm; in GetDefPermissions() 140 for (const auto& perm : permList) { in GetReqPermissions() local 142 permPrcel.permStatFull = perm; in GetReqPermissions()
|
/base/security/access_token/services/privacymanager/src/service/ |
D | privacy_manager_stub.cpp | 201 std::string perm = data.ReadString(); in RegisterPermActiveStatusCallbackInner() local 202 permList.emplace_back(perm); in RegisterPermActiveStatusCallbackInner()
|
/base/hiviewdfx/hiview/adapter/utility/ |
D | file_util.cpp | 348 auto perm = static_cast<fs::perms>(mode); in ChangeMode() local 349 fs::permissions(fileName, perm); in ChangeMode()
|