Skip to content

chore(deps): bump libseccomp from 0.3.0 to 0.4.0#3275

Merged
YJDoc2 merged 1 commit intoyouki-dev:mainfrom
MattPatchava:fix/update-libseccomp-version
Oct 24, 2025
Merged

chore(deps): bump libseccomp from 0.3.0 to 0.4.0#3275
YJDoc2 merged 1 commit intoyouki-dev:mainfrom
MattPatchava:fix/update-libseccomp-version

Conversation

@MattPatchava
Copy link
Copy Markdown
Contributor

@MattPatchava MattPatchava commented Oct 18, 2025

Description

This pull request updates the libseccomp crate from version 0.3.0 to 0.4.0, aligning with the latest release on crates.io. The previous version was missing the get_notify_fd() function (corresponding to the C seccomp_notify_fd() binding), which caused build failures in components using this API.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional changes)
  • Performance improvement
  • Test updates
  • CI/CD related changes
  • Other (please describe):

Testing

  • Added new unit tests
  • Added new integration tests
  • Ran existing test suite
  • Tested manually (verified that Youki builds successfully after dependency update)

Related Issues

No open issue. This pull request fixes a build failure caused by the missing get_notify_fd() binding in libseccomp 0.3.0.

Additional Context

@YJDoc2 YJDoc2 added the kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. label Oct 24, 2025
Copy link
Copy Markdown
Collaborator

@YJDoc2 YJDoc2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, thanks for the PR! This helps a lot.

From the release notes https://github.com/libseccomp-rs/libseccomp-rs/releases/tag/v0.4.0 , I don't think we are affected by any silent breakages, so as long as CI passes, I think we should be good to go.

@YJDoc2
Copy link
Copy Markdown
Collaborator

YJDoc2 commented Oct 24, 2025

@MattPatchava , CI is failing due to deprecation lint https://github.com/youki-dev/youki/actions/runs/18615250509/job/53556693922?pr=3275

Would you be willing to fix it in this PR?

call

libseccomp 0.4.0 deprecates ScmpFilterContext::new_filter() in favor of ScmpFilterContext::new(). This change updates the dependency and replaces the deprecated function call to use the new API

Signed-off-by: Matthew Patchava <mattpatchava@outlook.com>
@MattPatchava MattPatchava force-pushed the fix/update-libseccomp-version branch from c27d2fe to ace4492 Compare October 24, 2025 07:44
@MattPatchava
Copy link
Copy Markdown
Contributor Author

@YJDoc2 thanks for catching that! I've replaced the deprecated new_filter() call with new() and verified that Youki builds successfully with no warnings. CI should pass now 😊

@YJDoc2 YJDoc2 enabled auto-merge October 24, 2025 08:23
@YJDoc2 YJDoc2 merged commit 61614cc into youki-dev:main Oct 24, 2025
29 checks passed
@github-actions github-actions bot mentioned this pull request Oct 13, 2025
sat0ken pushed a commit to sat0ken/youki that referenced this pull request Mar 17, 2026
…comp-version

chore(deps): bump libseccomp from 0.3.0 to 0.4.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants