Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions sandbox/src/syscall/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,7 @@ pub async fn handle_write<T: Guest<Sandbox>>(
match entry {
FdEntry::Passthrough { kernel_fd, .. } => {
// Passthrough file - rewrite FD and return modified syscall for tail_inject
let new_syscall = reverie::syscalls::Write::new()
.with_fd(kernel_fd)
.with_buf(args.buf())
.with_len(args.len());
let new_syscall = args.with_fd(kernel_fd);

return Ok(crate::syscall::SyscallResult::Syscall(Syscall::Write(
new_syscall,
Expand Down