foxcpp / foxcpp/scmp-confine

Assign reasonable priorities for certain system calls

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
3
Forks
0
PR merge metrics
No merged PRs in 30d

Description

seccomp filter overhead is O(n) in the worst case where n is the amount of system calls included in the filter.
This can be partially compensated by reordering BPF instructions in a way that checks for more-often-used calls first. libseccomp provides API for that (rule priorities).

Two possible way to implement it:
A. Assign priorities depending on common expectations (e.g. futex first, then I/O calls, then file and network I/O, also mmap somewhere).
B. Assign priorities depending on the order calls are specified in arguments/configuration and thus leave this job to the policy author.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.