Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

rusty-snake/fstracer

Repository files navigation

fstracer

A filesystem-tracer.

Actually this is just an experiment of mine to learn more about Rust's Foreign Function Interface (FFI), writing LD_PRELOAD libraries in Rust and meson's (experimental) Rust support. You should not use it for production. Not all filesystem functions are implemented and the most code is marked with unsafe.

Prerequisites

Compile

git clone "https://github.com/rusty-snake/fstracer.git"
RUSTC="$PWD/rustc" meson _builddir -Dbuildtype=release
meson compile -C _builddir

Usage

$ FSTRACER_OUTPUT=/tmp/fstracer-celluloid.txt LD_PRELOAD=_builddir/libfstracer.so.0.1.0 celluloid

License

GPL-3.0-or-later