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

RFE: allow adding syscall definitions dynamically #129

Open
mvo5 opened this issue Sep 13, 2018 · 1 comment
Open

RFE: allow adding syscall definitions dynamically #129

mvo5 opened this issue Sep 13, 2018 · 1 comment

Comments

@mvo5
Copy link

mvo5 commented Sep 13, 2018

When building software on top of libseccomp sometimes we are stuck with older version of libseccomp. When someone e.g. runs with RHEL or an ubuntu LTS the syscall table is generally a bit behind. It would be great if there was a mechanism to add syscall to libseccomp from the program that uses libseccomp.

Something like (strawman):

int seccomp_syscall_add(const char* name, num unsigned int, arch uint32_t arch_token);

Our use case is the new "stax" syscall which is used by the latest QT but is not available in the libseccomp versions available in older distros. So when building confinement for QT apps with seccomp filtering this is problematic on older distro releases.

If the idea sounds reasonable I'm happy to look at implementing it and providing a PR.

@pcmoore pcmoore changed the title Please allow adding syscalls dynamically RFE: please allow adding syscalls dynamically Sep 13, 2018
@pcmoore pcmoore added this to the v2.5 milestone Sep 13, 2018
@pcmoore
Copy link
Member

pcmoore commented Sep 13, 2018

Hi @mvo5. To be honest, I'm not entirely sure what I think of the proposed API (I recognize it is just a rough idea for discussion), or even how I think we should try to solve this, but I think I understand the problem you are facing.

Regardless, this would be something that would happen after the v2.4 release; we are way overdue getting that out the door, and adding another feature would only push that back further.

@pcmoore pcmoore changed the title RFE: please allow adding syscalls dynamically RFE: allow adding syscall definitions dynamically Sep 13, 2018
@pcmoore pcmoore removed this from the v2.5 milestone Jan 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants