A hook filesystem and utils to inject IO chaos
Go to file
YangKeao 523c67dbd5
Bump version to v0.2.4 (#44)
Signed-off-by: Yang Keao <yangkeao@chunibyo.icu>
2024-07-07 14:22:16 +08:00
.cargo fix bugs in handling link 2020-10-20 19:32:35 +08:00
.github/workflows run test one by one (#43) 2024-07-07 14:06:49 +08:00
config-examples cancel the waiting injector 2022-01-05 15:12:35 +08:00
example refine ptrace 2021-01-19 20:20:20 +08:00
src Fix incorrect mmap args (#42) 2024-07-07 14:14:46 +08:00
tests Use jrpc server to set injectors (#23) 2021-03-24 15:32:53 +08:00
.dockerignore add auto release script 2020-09-10 12:06:10 +08:00
.gitignore modify example 2020-12-28 13:44:36 +08:00
Cargo.lock Bump version to v0.2.4 (#44) 2024-07-07 14:22:16 +08:00
Cargo.toml Bump version to v0.2.4 (#44) 2024-07-07 14:22:16 +08:00
Dockerfile fix cwd replacer 2022-01-04 17:38:23 +08:00
LICENSE add license 2020-09-22 11:37:38 +08:00
Makefile modify example 2020-12-28 13:44:36 +08:00
README.md Bump version to 0.1.16 2021-01-18 21:19:08 +08:00
rust-toolchain fix cwd replacer 2022-01-04 17:38:23 +08:00
rustfmt.toml Use jrpc server to set injectors (#23) 2021-03-24 15:32:53 +08:00

README.md

FOSSA Status

Notes:

  • Keep in mind that the result will be cached by system!

    If you set read error with a probability < 1, once the program reads successfully, no error will be returned until the cache misses. If you override the attributes with a probability < 1, the first lookup may decide the attributes for a long time (until the cache misses).

    But if you set probability == 1, which means the result will be the same all the time during the mount, there will be no problem.

  • Compile this binary with -Z relro-level=full, then it will load (mmap) all dependencies into memory at the beginning.

  • This program should be executed inside the target pid and mnt namespace

Known Issues

  • Cannot work with too long path (near 4096 bytes)

  • Cannot stat a fd after it has been deleted

License

FOSSA Status