WIP/fixbpf #13

已關閉
crtxcr 請求將 0 次程式碼提交從 WIP/fixbpf 合併至 master
擁有者

TODO:

  • EACCES is hardcoded
  • Shrink BPF filter.
TODO: - EACCES is hardcoded - Shrink BPF filter.
crtxcr 加入了 3 個提交 2021-08-12 12:31:00 +02:00
5cd45c09b7 bpf: Use SECCOMP_RET_KILL_PROCESS instead SECCOMP_RET_KILL
We generally want to kill the process not the thread.
66c6d28dcd bpf: Check arch value
The filter was missing this check for arch, allowing bypasses
by using different calling conventions of other architectures.

A trivial example is execve() of x86 from and x86_64 process.
51844ea3ab bpf: Deny x32 system calls for now
The arch field is the same for x86_64 and x32, thus checking it
is not enough.

Simply using x32 system calls would allow a bypass. Thus,
we must check whether the system call number is in __X32_SYSCALL_BIT.

This is of course a lazy solution, we could also add the
same system call number + _X32_SYSCALL_BIT to our black/whitelists.

For now however, this however will do.
crtxcr 強制推送了 WIP/fixbpf 自 89c5496fab83487c1699 2021-09-05 12:32:25 +02:00 比較
crtxcr 強制推送了 WIP/fixbpf 自 91a9b778eb8a9b1730de 2021-09-05 17:14:14 +02:00 比較
crtxcr 加入了 1 個提交 2021-09-05 17:24:46 +02:00
crtxcr 加入了 1 個提交 2021-09-06 21:53:45 +02:00
crtxcr 關閉了這個合併請求 2021-09-06 21:58:06 +02:00

Pull request closed

登入 才能加入這對話。
沒有審核者
未選擇里程碑
沒有負責人
1 參與者
通知
截止日期
截止日期無效或超出範圍,請使用「yyyy-mm-dd」的格式。

未設定截止日期。

先決條件

未設定先決條件。

參考: crtxcr/exile.h#13
No description provided.