/commonlibrary/rust/ylong_http/ylong_http_client/src/util/config/ |
H A D | fchown.rs | 18 pub(crate) uid: uid_t, 23 pub(crate) fn new(uid: uid_t, gid: gid_t) -> Self { 24 Self { uid, gid }
|
/commonlibrary/ets_utils/js_sys_module/process/ |
H A D | js_process.cpp | 298 auto uid = prouid % PER_USER_RANGE;
in IsIsolatedProcess() local 299 if ((uid >= 99000 && uid <= 99999) || // 99999:Only isolateuid numbers between 99000 and 99999.
in IsIsolatedProcess() 300 (uid >= 9000 && uid <= 98999)) { // 98999:Only appuid numbers between 9000 and 98999.
in IsIsolatedProcess() 309 napi_value Process::IsAppUid(napi_env env, napi_value uid) const
in IsAppUid() 314 napi_get_value_int32(env, uid, &number);
in IsAppUid() 381 int32_t uid = 0;
in GetUidForName() local 392 uid = static_cast<int32_t>(bufp->pw_uid);
in GetUidForName() 393 napi_create_int32(env, uid, in GetUidForName() 499 int32_t uid = 0; GetUidForName() local [all...] |
H A D | js_process.h | 42 * Get process uid.
166 * Determine whether the uid belongs to the application.
169 * @param uid The parameter is the uid of the application.
171 napi_value IsAppUid(napi_env env, napi_value uid) const;
181 * Get process uid by process name.
247 * Determine whether the uid belongs to the application.
250 * @param uid The parameter is the uid of the application.
252 napi_value IsAppUid(napi_env env, napi_value uid) cons [all...] |
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/net/sys/tcp/ |
H A D | listener.rs | 224 pub fn fchown(&self, uid: uid_t, gid: gid_t) -> io::Result<()> { in fchown() 225 self.source.fchown(uid, gid) in fchown()
|
H A D | stream.rs | 593 pub fn fchown(&self, uid: uid_t, gid: gid_t) -> io::Result<()> { in fmt() 594 self.source.fchown(uid, gid) in fmt()
|
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/process/pty_process/ |
H A D | command.rs | 411 /// let gid = cmd.uid(id); 414 pub fn uid(&mut self, id: u32) -> &mut PtyCommand { in uid() functions 415 self.command.uid(id); in uid() 419 /// Similar to `uid`, but sets the group ID of the child process. This has 420 /// the same semantics as the `uid` field.
|
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/net/ |
H A D | async_source.rs | 47 pub fn fchown(&self, uid: uid_t, gid: gid_t) -> io::Result<()> { in fchown() 48 syscall!(fchown(self.get_fd(), uid, gid))?; in fchown()
|
/commonlibrary/ets_utils/js_sys_module/test/ |
H A D | test_process.cpp | 194 * @tc.desc: Test process uid. 202 int32_t uid = 0; in HWTEST_F() local 203 napi_get_value_int32(env, napiUid, &uid); in HWTEST_F() 205 if (uid >= 0) { in HWTEST_F() 503 napi_value uid = nullptr; in HWTEST_F() local 504 napi_create_int32(env, 9, &uid); in HWTEST_F() 505 napi_value result = process.IsAppUid(env, uid); in HWTEST_F() 555 * @tc.desc: test Get process uid by process name. 578 * @tc.desc: test Get process uid by process name.
|
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/ |
H A D | client.rs | 400 pub fn sockets_owner(mut self, uid: u32, gid: u32) -> Self { in sockets_owner() 401 self.fchown = Some(FchownConfig::new(uid, gid)); in sockets_owner()
|
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/process/ |
H A D | command.rs | 525 pub fn uid(&mut self, id: u32) -> &mut Command { in uid() functions 526 self.std.uid(id); in uid() 530 /// Similar to `uid`, but sets the group ID of the child process. This has 531 /// the same semantics as the `uid` field.
|
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/connector/ |
H A D | mod.rs | 250 let _ = stream.fchown(fchown.uid, fchown.gid); in connect() 368 let _ = tcp.fchown(fchown.uid, fchown.gid);
|