Skip to content

Update libseccomp requirement from 0.3 to 0.4 #166

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 7, 2025

Updates the requirements on libseccomp to permit the latest version.

Release notes

Sourced from libseccomp's releases.

v0.4.0

Changelog

Added

  • Minimum Supported Rust Version (MSRV): 1.67
  • Updated const-syscall definitions to match libseccomp 2.6.0.
  • Support for loongarch64, m68k, sheb and sh architectures. Note that Rust has no support for SuperH so you can not use libseccomp-rs on such architectures. You can however create and export seccomp-bpf for them.
  • SeccompError::sysrawrc() that queries the system's raw error code directly returned by ScmpFilterAttr::ApiSysRawRc.
  • const-syscall support for loongarch64 and m68k
  • ScmpFilterContext::precompute
  • ScmpFilterContext::get_ctl_waitkill and ScmpFilterContext::set_ctl_waitkill
  • ScmpFilterAttr:CtlWaitkill
  • SeccmopError::raw_ffi_value
  • Example code for userspace notification functions.
  • ScmpFilterContext::get_api_tskip and ScmpFilterContext::set_api_tskip
  • Support for 2.5.5 and 2.5.6
  • Support for 2.6.0
  • ScmpFilterContext::*_transaction
  • ScmpSyscall::is_error and ScmpSyscall::is_undef
  • ScmpSyscall::from_raw_syscall, ScmpSyscall::as_raw_syscall and RawSyscall

Changed

Non-breaking

  • get_api_sysrawrc and set_api_sysrawrc can now be used with any API level.
  • get_ctl_optimize and set_ctl_optimize can now be used with any API level.
  • Rust 2021 Edition
  • updated const-syscall syscall definitions
  • Some error messages

breaking, caught by compiler

  • ScmpFilterContext::{add,remove}_arch return type changed to Result<()>. If you actually used the returned bool, call ScmpFilterContext::is_arch_present first.
  • Rename ScmpFilterContext::new_filter to ScmpFilterContext::new.
  • ScmpFilterContext methods support builder pattern.
  • IO-Safety for ScmpFilterContext::export_{bpf,pfc}.

silent breaking, not caught by compiler

  • Changed check_version logic not to fail even if the major version is greater than the specified version.
  • Use stack allocated cstrings in from_name*
  • Updated bitflags dependency to 2.9.0

Removed

  • Drop the libseccomp < 2.5.0 support.
Changelog

Sourced from libseccomp's changelog.

0.4.0 - 2025-04-04

Added

  • Minimum Supported Rust Version (MSRV): 1.67
  • Updated const-syscall definitions to match libseccomp 2.6.0.
  • Support for loongarch64, m68k, sheb and sh architectures. Note that Rust has no support for SuperH so you can not use libseccomp-rs on such architectures. You can however create and export seccomp-bpf for them.
  • SeccompError::sysrawrc() that queries the system's raw error code directly returned by ScmpFilterAttr::ApiSysRawRc.
  • const-syscall support for loongarch64 and m68k
  • ScmpFilterContext::precompute
  • ScmpFilterContext::get_ctl_waitkill and ScmpFilterContext::set_ctl_waitkill
  • ScmpFilterAttr:CtlWaitkill
  • SeccmopError::raw_ffi_value
  • Example code for userspace notification functions.
  • ScmpFilterContext::get_api_tskip and ScmpFilterContext::set_api_tskip
  • Support for 2.5.5 and 2.5.6
  • Support for 2.6.0
  • ScmpFilterContext::*_transaction
  • ScmpSyscall::is_error and ScmpSyscall::is_undef
  • ScmpSyscall::from_raw_syscall, ScmpSyscall::as_raw_syscall and RawSyscall

Changed

Non-breaking

  • get_api_sysrawrc and set_api_sysrawrc can now be used with any API level.
  • get_ctl_optimize and set_ctl_optimize can now be used with any API level.
  • Rust 2021 Edition
  • updated const-syscall syscall definitions
  • Some error messages

breaking, caught by compiler

  • ScmpFilterContext::{add,remove}_arch return type changed to Result<()>. If you actually used the returned bool, call ScmpFilterContext::is_arch_present first.
  • Rename ScmpFilterContext::new_filter to ScmpFilterContext::new.
  • ScmpFilterContext methods support builder pattern.
  • IO-Safety for ScmpFilterContext::export_{bpf,pfc}.

silent breaking, not caught by compiler

  • Changed check_version logic not to fail even if the major version is greater than the specified version.
  • Use stack allocated cstrings in from_name*
  • Updated bitflags dependency to 2.9.0

Removed

  • Drop the libseccomp < 2.5.0 support.

0.3.0 - 2022-10-01

Added

  • impl From<ScmpSyscall> for i32
  • impl fmt::Display for ScmpSyscall

... (truncated)

Commits
  • fdc61a5 Cargo.toml: Remove seccomp from category
  • b4eafe7 Bump version to 0.4.0
  • 3ae02ca Update MSRV to 1.67
  • 10a2575 Add transaction support
  • 70fc10b Add CI check for format_code_in_doc_comments
  • 2c6df61 Run rustfmt on code in doc comments
  • 88100e1 Add RawSyscall interface
  • 7ee1c83 Update syscalls (libseccomp v2.6.0 / Linux 6.13)
  • 893b82a Add ScmpSyscall::is_error and ScmpSyscall::is_undef
  • 592199c Fix typos found by typos
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [libseccomp](https://github.com/libseccomp-rs/libseccomp-rs) to permit the latest version.
- [Release notes](https://github.com/libseccomp-rs/libseccomp-rs/releases)
- [Changelog](https://github.com/libseccomp-rs/libseccomp-rs/blob/main/CHANGELOG.md)
- [Commits](libseccomp-rs/libseccomp-rs@v0.3.0...v0.4.0)

---
updated-dependencies:
- dependency-name: libseccomp
  dependency-version: 0.4.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Apr 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file rust Pull requests that update rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants