feat(process): resolve uid -> username from /etc/passwd in processlist (VA-5) #16
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/uid-to-username-va-5"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
processlistpopulateduidbut always leftusernameblank. This PR resolves the uid via a per-snapshot/etc/passwdread.Changes
ProcessInfogrowsusername: Option<String>.read_passwd(path)parses/etc/passwd(skips blank / comment / malformed lines).snapshot_from_paths(proc_root, passwd_path)test seam.dispatch.rs::reply_processlistships the new field.Performance
One passwd read per snapshot, not per process. A 1000-process scan stays a single file read.
Test plan
cargo test -p meshagent --lib host::process(11/11 passing, 4 new).cargo check -p meshagentclean.Closes VA-5.