Home
last modified time | relevance | path

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

/DragonOS/user/apps/user-manage/src/executor/
H A Dexecutor.rs104 let content = read_to_string(&guard.group_file); in write_group_file()
146 let content = read_to_string(&guard.gshadow_file); in write_gshadow_file()
199 let content = read_to_string(&guard.passwd_file); in update_passwd_file()
219 let content = read_to_string(&guard.group_file); in update_group_file()
249 let content = read_to_string(&guard.shadow_file); in update_shadow_file()
266 let content = read_to_string(&guard.gshadow_file); in update_gshadow_file()
330 let content = read_to_string(&guard.passwd_file); in update_passwd_file()
372 let content = read_to_string(&guard.group_file); in update_group_file()
416 let content = read_to_string(&guard.shadow_file); in update_shadow_file()
442 let content = read_to_string(&guard.gshadow_file); in update_gshadow_file()
[all …]
/DragonOS/build-scripts/kernel_build/src/kconfig/
H A Dmod.rs68 fs::read_to_string(&d_config_path).expect(&format!("Failed to read {}", d_config_str)); in dfs()
88 fs::read_to_string("kernel.config").expect("Failed to read kernel.config."); in parse_kernel_config()
108 fs::read_to_string(d_config).expect(&format!("Failed to read {}", path_str)); in parse_d_config()
/DragonOS/user/apps/user-manage/src/check/
H A Dcheck.rs106 let r = fs::read_to_string("/etc/group"); in check_group_gid()
217 match std::fs::read_to_string("/etc/passwd") { in home()
447 let r = fs::read_to_string("/etc/passwd"); in cur_username()
476 let r = fs::read_to_string("/etc/shadow"); in check_password()
587 let r = fs::read_to_string("/etc/passwd"); in is_main_group()
645 let r = fs::read_to_string("/etc/group"); in check_group_file()
709 match fs::read_to_string("/etc/passwd") { in scan_passwd()
790 match fs::read_to_string("/etc/group") { in scan_group()
877 let r = fs::read_to_string("/etc/group"); in check_groupname()
/DragonOS/kernel/crates/rbpf/examples/
H A Drbpf_plugin.rs79 std::io::stdin().read_to_string(&mut program_text).unwrap(); in main()