Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

seccomp specification has non-obvious semantics #2735

Open
cyphar opened this issue Jan 14, 2021 · 1 comment
Open

seccomp specification has non-obvious semantics #2735

cyphar opened this issue Jan 14, 2021 · 1 comment

Comments

@cyphar
Copy link
Member

cyphar commented Jan 14, 2021

Right now, our seccomp rule specifications have this strange behaviour where if two arguments touch the same argument index, the argument list is treated as a series of OR conditions rather than AND conditions. This was added by e9193ba to fix a breaking change, but the net result is that our seccomp rule generation feels at least slightly unpredictable as a result.

We should really rework this alongside the longer-term fix for #2151.

@cyphar
Copy link
Member Author

cyphar commented Jan 14, 2021

This also means that you cannot create a seccomp rule which only permits a syscall if more than one conditional is met (such as value > X && value < Y or something similar. This appears to have been an oversight in the original implementation but I'm not clear how exactly we could change this now, several years later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant