Home
last modified time | relevance | path

Searched refs:new_uid (Results 1 – 4 of 4) sorted by relevance

/DragonOS/user/apps/test-chown/src/
H A Dmain.rs30 fn test_fchownat(filename: &str, new_uid: uid_t, new_gid: gid_t, flags: i32) -> Result<(), Error> { in test_fchownat()
32 let result = unsafe { fchownat(AT_FDCWD, c_filename.as_ptr(), new_uid, new_gid, flags) }; in test_fchownat()
41 fn test_chown(filename: &str, new_uid: uid_t, new_gid: gid_t) -> Result<(), Error> { in test_chown()
43 let result = unsafe { chown(c_filename.as_ptr(), new_uid, new_gid) }; in test_chown()
52 fn test_fchown(fd: i32, new_uid: uid_t, new_gid: gid_t) -> Result<(), Error> { in test_fchown()
53 let result = unsafe { fchown(fd, new_uid, new_gid) }; in test_fchown()
61 fn test_lchown(symlink_name: &str, new_uid: uid_t, new_gid: gid_t) -> Result<(), Error> { in test_lchown()
63 let result = unsafe { lchown(c_symlink.as_ptr(), new_uid, new_gid) }; in test_lchown()
87 let new_uid = unsafe { (*pw).pw_uid }; in main() localVariable
103 test_chown(filename, new_uid, new_gid)?; in main()
[all …]
/DragonOS/user/apps/user-manage/src/check/
H A Dinfo.rs45 pub new_uid: Option<String>, field
H A Dcheck.rs277 uid: info.new_uid.clone(), in check()
334 info.new_uid = Some(arg.clone()); in parse_options()
/DragonOS/user/apps/user-manage/src/executor/
H A Dexecutor.rs337 if let Some(new_uid) = &info.new_uid { in update_passwd_file()
338 fields[2] = new_uid; in update_passwd_file()