microsoft / microsoft/litebox

Adding new interface to RawMutPointer to allow to write one field of a struct

Open
#396 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement layer-litebox
Dominant language
Rust
Stars
2.7k
Forks
144
Avg merge
12h 21m
Merged PRs (30d)
146

Description

https://github.com/jstarks/litebox/blob/72899fffc395a38d78667a6eecd37f745f5b0d21/litebox_shim_linux/src/syscalls/file.rs#L1022-L1036

I encountered the same issue before. My previous solution was writing the whole struct to userspace instead of just one field. It would be nice to have an interface that could directly write a field to userspace. I will create an issue to track it.

Originally posted by @CvvT in https://github.com/microsoft/litebox/pull/344#discussion_r2389312379

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at litebox_shim_linux/src/syscalls/file.rs lines 1022-1036 and inspect RawMutPointer’s existing interface and the surrounding syscall handling. Define an interface for writing one struct field to userspace without writing the whole struct, then verify it against the cited case.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
operating-systems
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.