Home
last modified time | relevance | path

Searched refs:perm (Results 1 – 25 of 31) sorted by relevance

12

/base/security/access_token/tools/accesstoken/src/
Dto_string.cpp50 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/
Dpermission_used_request_parcel.cpp30 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/
Dpermission.cpp19 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/
Dpermission.h22 static bool CheckSelfPermission(const std::string& perm);
23 static bool CheckCallingPermission(const std::string& perm);
/base/powermgr/power_manager/utils/permission/src/
Dpermission.cpp142 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/
Dpermission.h30 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/
Dpermission_policy_set.cpp147 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 …]
Dpermission_manager.cpp89 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/
Dinit_service_file.c42 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()
Dinit_service_socket.c115 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/
Dmock_ipc_common.cpp79 void IpcCommon::AddPermission(Permission perm) in AddPermission() argument
81 permSet_.insert(perm); in AddPermission()
Dmock_ipc_common.h45 static void AddPermission(Permission perm);
/base/security/access_token/interfaces/innerkits/token_callback/src/
Dtoken_callback_stub.cpp57 std::string perm = to_utf8(u16Perm); in OnRemoteRequest() local
58 permList.emplace_back(perm); in OnRemoteRequest()
/base/startup/init/services/init/include/
Dinit_service_file.h39 mode_t perm; // Setting permissions member
Dinit_service_socket.h65 mode_t perm; // Setting permissions member
/base/security/access_token/interfaces/innerkits/accesstoken/src/
Daccesstoken_manager_client.cpp84 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/
Ddata_translator.cpp51 for (const auto& perm : request.permissionList) { in TranslationIntoGenericValues() local
53 if (Constant::TransferPermissionToOpcode(perm, opCode)) { in TranslationIntoGenericValues()
/base/startup/init/test/unittest/init/
Dservice_file_unittest.cpp48 fileOpt->perm = 0770;
Dservice_socket_unittest.cpp51 sockopt->perm = 0660;
/base/security/access_token/services/privacymanager/src/record/
Dpermission_record_manager.cpp353 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/
Dactive_status_callback_manager.cpp108 [permName](const std::string& perm) { return perm == permName; }); in NeedCalled() argument
/base/security/access_token/services/accesstokenmanager/main/cpp/src/callback/
Dcallback_manager.cpp116 [permName](const std::string& perm) { return perm == permName; }); in CalledAccordingToPermLlist() argument
/base/security/access_token/services/accesstokenmanager/main/cpp/src/service/
Daccesstoken_manager_service.cpp124 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/
Dprivacy_manager_stub.cpp201 std::string perm = data.ReadString(); in RegisterPermActiveStatusCallbackInner() local
202 permList.emplace_back(perm); in RegisterPermActiveStatusCallbackInner()
/base/hiviewdfx/hiview/adapter/utility/
Dfile_util.cpp348 auto perm = static_cast<fs::perms>(mode); in ChangeMode() local
349 fs::permissions(fileName, perm); in ChangeMode()

12