diff options
author | edef <edef@unfathomable.blue> | 2022-02-08 02:40:53 +0000 |
---|---|---|
committer | edef <edef@unfathomable.blue> | 2022-02-08 02:40:53 +0000 |
commit | 852e87d8435e7e233ead323490ae4aa76935fd83 (patch) | |
tree | 99e6206dca2fc1e98da836e9cef2b42f435bd81f | |
parent | f82509b9ec682b88798b026dbdaa55c09abf3def (diff) | |
download | unf-legacy-852e87d8435e7e233ead323490ae4aa76935fd83.tar.zst |
ripple/minitrace: log access(2) paths
Co-authored-by: V <v@unfathomable.blue> Change-Id: I26603ca7de3ac4a21b64390e4fc3d9f44a6c172a
-rw-r--r-- | ripple/minitrace/src/main.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ripple/minitrace/src/main.rs b/ripple/minitrace/src/main.rs index fd91dfc..be8ba6a 100644 --- a/ripple/minitrace/src/main.rs +++ b/ripple/minitrace/src/main.rs @@ -239,7 +239,11 @@ fn check_syscall(process: &Process, entry: SyscallEntry) -> bool { 17 => {} // access - 21 => {} + 21 => { + let [pathname, _mode, ..] = entry.args; + let pathname = process.read_mem_cstr(pathname).unwrap(); + println!("access({:?}, ..)", pathname); + } // getcwd 79 => {} |