Loading
Bug 1698778 - Allow filtering SysV IPC call arguments. r=gcp
On 32-bit x86, Linux originally used a single system call, ipc(2), for all SysV IPC. This is similar to socketcall(2), but the arguments are passed directly (shifted by one position) instead of indirected via a pointer, so seccomp-bpf can filter them normally. Also similar to socketcall(2), individual syscalls were added later (in kernel 5.1, vs. 4.3 for socket calls), so the policy needs to handle both of them, adjusting argument offsets as needed. This patch adds an argument to `EvaluateIpcCall` to allow that. Differential Revision: https://phabricator.services.mozilla.com/D131678