Skip to content

Commit dd1c0ec

Browse files
branchseerclaude
andauthored
chore(deps): switch seccompiler to upstream rust-vmm/seccompiler (#337)
## Summary - Replace the personal fork (`branchseer/seccompiler`, branch `seccomp-action-raw`) with the upstream `rust-vmm/seccompiler` repo - Use `SeccompAction::UserNotif` (added upstream in commit 0858710) instead of the fork's `SeccompAction::Raw(libc::SECCOMP_RET_USER_NOTIF)` - Add comment in Cargo.toml explaining why we pin to a git rev (feature not yet in a published release) ## Test plan - [x] `cargo check -p fspy_seccomp_unotify --features supervisor,target` passes - [ ] CI passes https://claude.ai/code/session_01GhffM3Grv8vjp7oDZDtv7C --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent dca66ce commit dd1c0ec

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ ref-cast = "1.0.24"
109109
regex = "1.11.3"
110110
rusqlite = "0.37.0"
111111
rustc-hash = "2.1.1"
112-
seccompiler = { git = "https://github.com/branchseer/seccompiler", branch = "seccomp-action-raw" }
112+
# SeccompAction::UserNotif (SECCOMP_RET_USER_NOTIF) was added after the latest published release (v0.5.0)
113+
seccompiler = { git = "https://github.com/rust-vmm/seccompiler", rev = "08587106340b8e3cb361c7561411510039436857" }
113114
serde = "1.0.219"
114115
serde_json = "1.0.140"
115116
serde_yml = "0.0.12"

crates/fspy_seccomp_unotify/src/supervisor/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ pub fn supervise<H: SeccompNotifyHandler + Default + Send + 'static>() -> io::Re
7171
let seccomp_filter = SeccompFilter::new(
7272
H::syscalls().iter().map(|sysno| (sysno.id().into(), vec![])).collect(),
7373
SeccompAction::Allow,
74-
SeccompAction::Raw(libc::SECCOMP_RET_USER_NOTIF),
74+
SeccompAction::UserNotif,
7575
std::env::consts::ARCH.try_into().unwrap(),
7676
)
7777
.unwrap();

0 commit comments

Comments
 (0)