Skip to content

add C strace-grate#24

Open
drapl0n wants to merge 1 commit intomainfrom
strace-grate-c
Open

add C strace-grate#24
drapl0n wants to merge 1 commit intomainfrom
strace-grate-c

Conversation

@drapl0n
Copy link
Contributor

@drapl0n drapl0n commented Feb 20, 2026

This PR adds C strace grate. I have currently disabled handler registration for exec and clone syscalls.

Compile using:

lind_compile --compile-grate strace_grate.c strace.c

@stupendoussuperpowers
Copy link
Contributor

  1. Can you follow the directory structure of imfs_grate and geteuid_grate as well? i.e. place all the .c/.h files in src/, and add a compile script which will place the .wasm/.cwasm files in output/?

  2. Does this convert arguments to strings as well or is that a TODO?

@drapl0n
Copy link
Contributor Author

drapl0n commented Feb 21, 2026

  1. Can you follow the directory structure of imfs_grate and geteuid_grate as well? i.e. place all the .c/.h files in src/, and add a compile script which will place the .wasm/.cwasm files in output/?

Latest version of lind_compile has a flag that facilitates compilation of the grate and copies pre-compiled binary to lindfs, which i think is pretty streamlined.

Does this convert arguments to strings as well or is that a TODO?

Yes, it does convert syscall arguments with type ARG_STR into a string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants