/third_party/libwebsockets/lib/misc/ |
H A D | diskcache.c | 121 lws_diskcache_prepare(const char *cache_base_dir, int mode, uid_t uid) in lws_diskcache_prepare() argument 127 if (chown(cache_base_dir, uid, (gid_t)-1)) in lws_diskcache_prepare() 129 cache_base_dir, uid); in lws_diskcache_prepare() 134 if (chown(dir, uid, (uid_t)-1)) in lws_diskcache_prepare() 136 dir, uid); in lws_diskcache_prepare() 141 if (chown(dir, uid, (uid_t)-1)) in lws_diskcache_prepare() 143 __func__, dir, uid); in lws_diskcache_prepare()
|
/third_party/pulseaudio/src/modules/ |
H A D | module-console-kit.c | 65 uint32_t uid; in add_session() local 87 if (!dbus_message_get_args(reply, &error, DBUS_TYPE_UINT32, &uid, DBUS_TYPE_INVALID)) { in add_session() 90 if (!dbus_message_get_args(reply, &error, DBUS_TYPE_INT32, &uid, DBUS_TYPE_INVALID)) { in add_session() 97 if ((uid_t) uid != getuid()) in add_session() 211 uint32_t uid; in get_session_list() local 224 uid = (uint32_t) getuid(); in get_session_list() 225 if (!(dbus_message_append_args(m, DBUS_TYPE_UINT32, &uid, DBUS_TYPE_INVALID))) { in get_session_list()
|
/kernel/linux/linux-6.6/net/sunrpc/ |
H A D | svcauth_unix.c | 28 * AUTHNULL is treated just like AUTHUNIX except that the uid/gid 410 kuid_t uid; member 415 static int unix_gid_hash(kuid_t uid) in unix_gid_hash() argument 417 return hash_long(from_kuid(&init_user_ns, uid), GID_HASHBITS); in unix_gid_hash() 443 return uid_eq(orig->uid, new->uid); in unix_gid_match() 449 new->uid = item->uid; in unix_gid_init() 480 snprintf(tuid, 20, "%u", from_kuid(&init_user_ns, ug->uid)); in unix_gid_request() 485 static struct unix_gid *unix_gid_lookup(struct cache_detail *cd, kuid_t uid); 492 kuid_t uid; unix_gid_parse() local 629 unix_gid_lookup(struct cache_detail *cd, kuid_t uid) unix_gid_lookup() argument 642 unix_gid_find(kuid_t uid, struct svc_rqst *rqstp) unix_gid_find() argument [all...] |
/foundation/ability/ability_runtime/test/unittest/ams_service_load_ability_process_test/ |
H A D | ams_service_load_ability_process_test.cpp | 153 appInfo->name, abilityInfo->process, appInfo->uid, bundleInfo); in StartLoadAbility() 193 appInfo->name, GetTestAppName(), appInfo->uid, bundleInfo); in HWTEST_F() 244 appInfo->name, GetTestAppName(), appInfo->uid, bundleInfo); in HWTEST_F() 275 appInfo2->name, "com.ohos.test.special", appInfo2->uid, bundleInfo); in HWTEST_F() 450 appInfo->name, GetTestAppName(), appInfo->uid, bundleInfo); in HWTEST_F() 468 appInfo->name, GetTestAppName(), appInfo->uid, bundleInfo); in HWTEST_F() 508 appInfo->name, GetTestAppName(), appInfo->uid, bundleInfo); in HWTEST_F() 536 appInfo->name, GetTestAppName(), appInfo->uid, bundleInfo); in HWTEST_F() 581 appInfo->name, GetTestAppName(), appInfo->uid, bundleInfo); in HWTEST_F() 657 appInfo->name, GetTestAppName(), appInfo->uid, bundleInf in HWTEST_F() [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ |
H A D | installd_client.cpp | 108 || createDirParam.uid < 0 || createDirParam.gid < 0) { in CreateBundleDataDir() 183 std::vector<int64_t> &bundleStats, const int32_t uid, const int32_t appIndex) in GetBundleStats() 190 return CallService(&IInstalld::GetBundleStats, bundleName, userId, bundleStats, uid, appIndex); in GetBundleStats() 331 const std::string &dir, const int32_t mode, const int32_t uid, const int32_t gid) in Mkdir() 338 return CallService(&IInstalld::Mkdir, dir, mode, uid, gid); in Mkdir() 362 const std::string &newSoPath, int32_t uid) in ApplyDiffPatch() 368 return CallService(&IInstalld::ApplyDiffPatch, oldSoPath, diffFilePath, newSoPath, uid); in ApplyDiffPatch() 507 const std::string &cpuAbi, const std::string &tmpSoPath, int32_t uid) in ExtractEncryptedSoFiles() 513 return CallService(&IInstalld::ExtractEncryptedSoFiles, hapPath, realSoFilesPath, cpuAbi, tmpSoPath, uid); in ExtractEncryptedSoFiles() 516 ErrCode InstalldClient::SetEncryptionPolicy(int32_t uid, cons argument 182 GetBundleStats(const std::string &bundleName, const int32_t userId, std::vector<int64_t> &bundleStats, const int32_t uid, const int32_t appIndex) GetBundleStats() argument 330 Mkdir( const std::string &dir, const int32_t mode, const int32_t uid, const int32_t gid) Mkdir() argument 361 ApplyDiffPatch(const std::string &oldSoPath, const std::string &diffFilePath, const std::string &newSoPath, int32_t uid) ApplyDiffPatch() argument 506 ExtractEncryptedSoFiles(const std::string &hapPath, const std::string &realSoFilesPath, const std::string &cpuAbi, const std::string &tmpSoPath, int32_t uid) ExtractEncryptedSoFiles() argument [all...] |
/foundation/communication/netmanager_base/services/netstatsmanager/src/stub/ |
H A D | net_stats_service_stub.cpp | 261 uint32_t uid; in OnGetUidRxBytes() local 263 if (!data.ReadUint32(uid)) { in OnGetUidRxBytes() 268 int32_t result = GetUidRxBytes(stats, uid); in OnGetUidRxBytes() 284 uint32_t uid; in OnGetUidTxBytes() local 286 if (!data.ReadUint32(uid)) { in OnGetUidTxBytes() 291 int32_t result = GetUidTxBytes(stats, uid); in OnGetUidTxBytes() 338 uint32_t uid = 0; in OnGetUidStatsDetail() local 341 if (!(data.ReadString(iface) && data.ReadUint32(uid) && data.ReadUint64(start) && data.ReadUint64(end))) { in OnGetUidStatsDetail() 345 int32_t ret = GetUidStatsDetail(iface, uid, start, end, info); in OnGetUidStatsDetail() 496 uint32_t uid in OnGetTrafficStatsByUidNetwork() local [all...] |
/foundation/filemanagement/app_file_service/frameworks/native/backup_ext/src/ |
H A D | tar_file.cpp | 162 static bool CopyData(TarHeader &hdr, const string &mode, const string &uid, const string &gid, const string &size) in CopyData() argument 169 ret = memcpy_s(hdr.uid, sizeof(hdr.uid), uid.c_str(), min(sizeof(hdr.uid) - 1, uid.length())); in CopyData() 196 string uid = I2Ocs(sizeof(hdr.uid), st.st_uid); in I2OcsConvert() local 199 if (!CopyData(hdr, mode, uid, gid, size)) { in I2OcsConvert() 478 HILOGE("Fill uid faile in FillOwnerName() [all...] |
/foundation/communication/dsoftbus/core/common/security/permission/small/ |
H A D | permission_utils.c | 20 int32_t IsValidPkgName(int32_t uid, const char *pkgName) in IsValidPkgName() argument 22 (void)uid; in IsValidPkgName()
|
/third_party/musl/src/unistd/ |
H A D | setuid.c | 5 int setuid(uid_t uid) in setuid() argument 7 return __setxid(SYS_setuid, uid, 0, 0); in setuid()
|
H A D | fchownat.c | 4 int fchownat(int fd, const char *path, uid_t uid, gid_t gid, int flag) in fchownat() argument 6 return syscall(SYS_fchownat, fd, path, uid, gid, flag); in fchownat()
|
/third_party/musl/src/linux/ |
H A D | setfsuid.c | 4 int setfsuid(uid_t uid) in setfsuid() argument 6 return syscall(SYS_setfsuid, uid); in setfsuid()
|
/kernel/linux/linux-6.6/fs/smb/server/ |
H A D | smbacl.c | 52 /* S-1-5-88-1 Unix uid */ 274 kuid_t uid; in sid_to_id() local 278 uid = KUIDT_INIT(id); in sid_to_id() 279 uid = from_vfsuid(idmap, &init_user_ns, VFSUIDT_INIT(uid)); in sid_to_id() 280 if (uid_valid(uid)) { in sid_to_id() 281 fattr->cf_uid = uid; in sid_to_id() 310 pace->e_uid = state->users->aces[i].uid; in posix_state_to_acl() 497 pr_err("%s: Error %d mapping Owner SID to uid\n", in parse_dacl() 503 acl_state.users->aces[acl_state.users->n].uid in parse_dacl() 603 uid_t uid; set_posix_acl_entries_dacl() local 670 uid_t uid; set_posix_acl_entries_dacl() local 741 uid_t uid; set_mode_dacl() local 905 uid_t uid; build_sec_desc() local 998 smb_inherit_dacl(struct ksmbd_conn *conn, const struct path *path, unsigned int uid, unsigned int gid) smb_inherit_dacl() argument 1215 smb_check_perm_dacl(struct ksmbd_conn *conn, const struct path *path, __le32 *pdaccess, int uid) smb_check_perm_dacl() argument [all...] |
/foundation/resourceschedule/device_usage_statistics/services/common/src/ |
H A D | bundle_active_core.cpp | 152 tmpHandlerObject.uid_ = data.GetWant().GetIntParam("uid", -1); in HandlePackageRemoveEvent() 174 tmpHandlerObject.uid_ = data.GetWant().GetIntParam("uid", -1); in HandlePackageAddEvent() 310 const int32_t uid, const int32_t appIndex) in OnBundleUninstalled() 322 AddbundleUninstalledUid(uid); in OnBundleUninstalled() 323 DelayRemoveBundleUninstalledUid(uid); in OnBundleUninstalled() 324 service->DeleteUninstalledBundleStats(bundleName, uid, appIndex); in OnBundleUninstalled() 325 bundleGroupController_->OnBundleUninstalled(userId, bundleName, uid, appIndex); in OnBundleUninstalled() 329 const int32_t uid, const int32_t appIndex) in OnBundleInstalled() 333 if (bundleUninstalledSet_.find(uid) == bundleUninstalledSet_.end()) { in OnBundleInstalled() 336 bundleUninstalledSet_.erase(uid); in OnBundleInstalled() 309 OnBundleUninstalled(const int32_t userId, const std::string& bundleName, const int32_t uid, const int32_t appIndex) OnBundleUninstalled() argument 328 OnBundleInstalled(const int32_t userId, const std::string& bundleName, const int32_t uid, const int32_t appIndex) OnBundleInstalled() argument 344 AddbundleUninstalledUid(const int32_t uid) AddbundleUninstalledUid() argument 350 DelayRemoveBundleUninstalledUid(const int32_t uid) DelayRemoveBundleUninstalledUid() argument 364 isUninstalledApp(const int32_t uid) isUninstalledApp() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | time-event.c | 42 te_data->uid = 0; in iwl_mvm_te_clear_data() 411 if (le32_to_cpu(notif->unique_id) == te_data->uid) { in iwl_mvm_aux_roc_te_handle_notif() 434 te_data->uid = 0; in iwl_mvm_aux_roc_te_handle_notif() 470 if (le32_to_cpu(notif->unique_id) == te_data->uid) in iwl_mvm_rx_time_event_notif() 496 /* te_data->uid is already set in the TIME_EVENT_CMD response */ in iwl_mvm_te_notif() 497 if (le32_to_cpu(resp->unique_id) != te_data->uid) in iwl_mvm_te_notif() 501 te_data->uid); in iwl_mvm_te_notif() 532 te_data->uid = le32_to_cpu(resp->unique_id); in iwl_mvm_time_event_response() 534 te_data->uid); in iwl_mvm_time_event_response() 621 te_data->uid, in iwl_mvm_protect_session() 696 __iwl_mvm_remove_time_event(struct iwl_mvm *mvm, struct iwl_mvm_time_event_data *te_data, u32 *uid) __iwl_mvm_remove_time_event() argument 769 u32 uid; iwl_mvm_remove_aux_roc_te() local 798 u32 uid; iwl_mvm_remove_time_event() local 1047 u32 uid; iwl_mvm_cleanup_roc_te() local [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/mock/src/ |
H A D | installd_permission_mgr.cpp | 24 bool InstalldPermissionMgr::VerifyCallingPermission(int32_t uid) in VerifyCallingPermission() argument 29 bool InstalldPermissionMgr::VerifyCallingPermission(int32_t uid)
|
/foundation/resourceschedule/background_task_mgr/services/test/unittest/mock/ |
H A D | mock_ipc.cpp | 24 int32_t uid = 1; in GetCallingUid() local 25 return uid; in GetCallingUid()
|
/foundation/communication/netmanager_base/frameworks/native/netconnclient/src/ |
H A D | socket_permission.cpp | 19 int32_t SetInternetPermission(uint32_t uid, uint8_t allow) in SetInternetPermission() argument 21 return OHOS::NetManagerStandard::NetConnClient::GetInstance().SetInternetPermission(uid, allow); in SetInternetPermission()
|
/third_party/musl/libc-test/src/functionalext/supplement/process/ |
H A D | fexecverely.c | 21 uid_t uid = getuid(); in main() local 22 EXPECT_EQ("fexecverely", uid, getuid()); in main()
|
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_sta_sa/ |
H A D | wifi_device_service_impl.cpp | 116 WIFI_LOGI("EnableWifi(), pid:%{public}d, uid:%{public}d, BundleName:%{public}s.", in EnableWifi() 136 WIFI_LOGI("DisableWifi(), pid:%{public}d, uid:%{public}d, BundleName:%{public}s.", in DisableWifi() 166 WIFI_LOGI("EnableSemiWifi(), pid:%{public}d, uid:%{public}d, BundleName:%{public}s.", in EnableSemiWifi() 386 ErrCode WifiDeviceServiceImpl::CheckCallingUid(int &uid) in CheckCallingUid() argument 389 uid = GetCallingUid(); in CheckCallingUid() 390 if (!WifiAppStateAware::GetInstance().IsForegroundApp(uid)) { in CheckCallingUid() 399 bool WifiDeviceServiceImpl::IsWifiBrokerProcess(int uid) in IsWifiBrokerProcess() argument 405 std::string ancoBrokerFrameProcessName = GetBrokerProcessNameByPid(uid, pid); in IsWifiBrokerProcess() 454 /* check the caller's uid */ in RemoveCandidateConfig() 455 int uid in RemoveCandidateConfig() local 496 int uid = 0; RemoveCandidateConfig() local 589 int uid = 0; AddDeviceConfig() local 718 SetDpiMarkRule(const std::string &ifaceName, int uid, int protocol, int enable) SetDpiMarkRule() argument 791 int uid = 0; GetDeviceConfigs() local 934 int uid = 0; ConnectToNetwork() local [all...] |
/foundation/ability/ability_runtime/services/abilitymgr/src/utils/ |
H A D | ability_event_util.cpp | 23 void AbilityEventUtil::HandleModuleInfoUpdated(const std::string &bundleName, const int uid)
in HandleModuleInfoUpdated() argument 26 DelayedSingleton<AppScheduler>::GetInstance()->UpdateApplicationInfoInstalled(bundleName, uid);
in HandleModuleInfoUpdated()
|
/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
H A D | seteuid.c | 22 * @tc.desc : Call the seteuid method to set the process uid 27 uid_t uid = 0; in seteuid_0100() local 28 int result = seteuid(uid); in seteuid_0100()
|
/foundation/ability/form_fwk/services/form_render_service/include/ |
H A D | form_render_impl.h | 90 int64_t formId, const std::string &compId, const std::string &uid) override;
98 void FormRenderGCTask(const std::string &uid);
99 void FormRenderGC(const std::string &uid);
104 // <uid(userId + bundleName), renderRecord>
|
/foundation/ability/ability_runtime/test/fuzztest/abilitymgrrestartappmanager_fuzzer/ |
H A D | abilitymgrrestartappmanager_fuzzer.cpp | 54 int32_t uid = static_cast<int32_t>(GetU32Data(data)); in DoSomethingInterestingWithMyAPI() local 57 restartAppManager-> IsRestartAppFrequent(uid, currentTime); in DoSomethingInterestingWithMyAPI() 58 restartAppManager-> AddRestartAppHistory(uid, currentTime); in DoSomethingInterestingWithMyAPI()
|
/foundation/ability/ability_runtime/test/fuzztest/apprunningstatusproxy_fuzzer/ |
H A D | apprunningstatusproxy_fuzzer.cpp | 57 int32_t uid = static_cast<int32_t>(GetU32Data(data)); in DoSomethingInterestingWithMyAPI() local 59 appRunningStatusProxy->NotifyAppRunningStatus(bundle, uid, runningStatus); in DoSomethingInterestingWithMyAPI() 61 appRunningStatusProxy->NotifyAppRunningStatus(bundle, uid, runningStatus); in DoSomethingInterestingWithMyAPI()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/ |
H A D | bundle_common_event_mgr.h | 59 int32_t uid = 0; member 77 ErrCode NotifySandboxAppStatus(const InnerBundleInfo &info, int32_t uid, int32_t userId, 80 int32_t userId, int32_t uid);
|