summary refs log tree commit diff
path: root/ripple
diff options
context:
space:
mode:
Diffstat (limited to 'ripple')
-rw-r--r--ripple/minitrace/src/main.rs12
1 files changed, 10 insertions, 2 deletions
diff --git a/ripple/minitrace/src/main.rs b/ripple/minitrace/src/main.rs
index f015bf9..5fa35da 100644
--- a/ripple/minitrace/src/main.rs
+++ b/ripple/minitrace/src/main.rs
@@ -1,4 +1,5 @@
 // SPDX-FileCopyrightText: edef <edef@unfathomable.blue>
+// SPDX-FileCopyrightText: V <v@unfathomable.blue>
 // SPDX-License-Identifier: OSL-3.0
 
 use {
@@ -13,7 +14,7 @@ use {
 		},
 		unistd::Pid,
 	},
-	std::{env, os::unix::process::CommandExt, process::Command},
+	std::{convert::TryInto, env, os::unix::process::CommandExt, process::Command},
 };
 
 // TODO(edef): consider implementing this in terms of TID?
@@ -234,7 +235,14 @@ fn check_syscall(entry: SyscallEntry) -> bool {
 		231 => {}
 
 		// openat
-		257 => {}
+		257 => {
+			let [dirfd, _pathname, _flags, _mode, _, _] = entry.args;
+			const AT_FDCWD: i32 = -100;
+
+			if dirfd.try_into() == Ok(AT_FDCWD) {
+				return false;
+			}
+		}
 
 		// newfstatat
 		262 => {}