Skip to content

Assign reasonable priorities for certain system calls #3

Description

@foxcpp

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions