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

Use libc's seccomp-related constants #60

Closed
boustrophedon opened this issue Sep 11, 2023 · 0 comments · Fixed by #71
Closed

Use libc's seccomp-related constants #60

boustrophedon opened this issue Sep 11, 2023 · 0 comments · Fixed by #71

Comments

@boustrophedon
Copy link
Contributor

As mentioned in #58 once rust-lang/libc#3343 lands we should use libc's constants instead of redefining them.

https://github.com/rust-vmm/seccompiler/blob/main/src/backend/bpf.rs#L116
and SECCOMP_SET_MODE_FILTER which is being added to lib.rs in #58

boustrophedon added a commit to boustrophedon/seccompiler that referenced this issue Mar 4, 2024
Now that rust-lang/libc/pull/3343 is merged and released, switch to
using libc's constants.

SECCOMP_RET_MASK does not exist anymore and appears to have not existed
for a while. SECCOMP_RET_DATA is exactly the same mask value, and the
usage here is in line with the man page.

Fixes rust-vmm#60
@boustrophedon boustrophedon mentioned this issue Mar 4, 2024
4 tasks
boustrophedon added a commit to boustrophedon/seccompiler that referenced this issue Mar 4, 2024
Use libc constants now that rust-lang/libc/pull/3343 is merged and
released.

SECCOMP_RET_MASK does not exist anymore and appears to have not existed
for a while. SECCOMP_RET_DATA is exactly the same mask value, and the
usage here is in line with the man page.

Completes rust-vmm#60

Signed-off-by: Harry Stern <harry@harrystern.net>
boustrophedon added a commit to boustrophedon/seccompiler that referenced this issue Mar 5, 2024
Use libc constants now that rust-lang/libc/pull/3343 is merged and
released.

SECCOMP_RET_MASK does not exist anymore and appears to have not existed
for a while. SECCOMP_RET_DATA is exactly the same mask value, and the
usage here is in line with the man page.

Completes rust-vmm#60

Signed-off-by: Harry Stern <harry@harrystern.net>
alindima pushed a commit that referenced this issue Mar 18, 2024
Use libc constants now that rust-lang/libc/pull/3343 is merged and
released.

SECCOMP_RET_MASK does not exist anymore and appears to have not existed
for a while. SECCOMP_RET_DATA is exactly the same mask value, and the
usage here is in line with the man page.

Completes #60

Signed-off-by: Harry Stern <harry@harrystern.net>
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

Successfully merging a pull request may close this issue.

1 participant