summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ripple/minitrace/src/main.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/ripple/minitrace/src/main.rs b/ripple/minitrace/src/main.rs
index ae1de7c..ca0ce65 100644
--- a/ripple/minitrace/src/main.rs
+++ b/ripple/minitrace/src/main.rs
@@ -312,12 +312,13 @@ fn check_syscall(process: &Process, entry: SyscallEntry) -> bool {
 
 		// prlimit64
 		302 => {
-			// pid = 0
-			if entry.args[0] != 0 {
+			let [pid, resource, _new_limit, _old_limit, ..] = entry.args;
+
+			if pid != 0 {
 				return false;
 			}
 
-			match entry.args[1] as u32 {
+			match resource as u32 {
 				libc::RLIMIT_AS | libc::RLIMIT_STACK | libc::RLIMIT_RSS => {}
 				_ => return false,
 			}