summary refs log tree commit diff
path: root/ripple/minitrace
diff options
context:
space:
mode:
authoredef <edef@unfathomable.blue>2022-02-08 02:40:53 +0000
committeredef <edef@unfathomable.blue>2022-02-08 02:40:53 +0000
commit852e87d8435e7e233ead323490ae4aa76935fd83 (patch)
tree99e6206dca2fc1e98da836e9cef2b42f435bd81f /ripple/minitrace
parentf82509b9ec682b88798b026dbdaa55c09abf3def (diff)
downloadunf-legacy-852e87d8435e7e233ead323490ae4aa76935fd83.tar.zst
ripple/minitrace: log access(2) paths
Co-authored-by: V <v@unfathomable.blue>
Change-Id: I26603ca7de3ac4a21b64390e4fc3d9f44a6c172a
Diffstat (limited to 'ripple/minitrace')
-rw-r--r--ripple/minitrace/src/main.rs6
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 => {}