microsoft / microsoft/litebox

Rather than doing this via a _new_ magic number, we should be checking the section name instead:

Open
#113 0 comments 0 reactions 1 assignee View on GitHub

@CvvT is already working on this.

Since May 14, 2025.

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

Description

Rather than doing this via a new magic number, we should be checking the section name instead:
https://github.com/MSRSSP/litebox/blob/37db22002fbb7870a744e99c3bab3e75efea7e37/litebox_syscall_rewriter/src/lib.rs#L59-L67

Pulling in the linux_syscall_rewriter as a dependency is a bit too much (and problematic, due to std reasons) just to get this constant, but copying this single constant string into this crate is perfectly fine. I think we can clean it up so that things stay in sync, but that can be a separate PR if need be.

Originally posted by @jaybosamiya-ms in https://github.com/MSRSSP/litebox/pull/103#discussion_r2074606643

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.