diff options
author | V <v@unfathomable.blue> | 2022-02-08 04:34:44 +0000 |
---|---|---|
committer | edef <edef@unfathomable.blue> | 2022-02-08 04:34:44 +0000 |
commit | e65857d3e8a2f0ae58982834f1298cf545d22fae (patch) | |
tree | 4e4ed3f7520c54569c487d0c588e851944e77d76 /ripple | |
parent | 9fd5604718816bca09068e1505df919b5e54d8a6 (diff) | |
download | unf-legacy-e65857d3e8a2f0ae58982834f1298cf545d22fae.tar.zst |
ripple/minitrace: clean up prlimit64 arg destructuring
Change-Id: If54ca6c931c0f3c8d99a65aeca15385f1ef8ebf3
Diffstat (limited to 'ripple')
-rw-r--r-- | ripple/minitrace/src/main.rs | 7 |
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, } |