A simple cli tool to monitor the file opening of application processes.
- ebpf enabled kernel
# zcat /proc/config.gz | grep CONFIG_BPF=y CONFIG_BPF=y
- kprobe enabled kernel
# zcat /proc/config.gz | grep CONFIG_KPROBES=y CONFIG_KPROBES=y
- arm64/x86_64 architecture
$ uname -m aarch64 or x86_64
- root required
# ./file-monitor
m, err := monitor.NewMonitor()
if err != nil {
println(err.Error())
return
}
defer m.Close()
m.Launch()
for {
event, ok := <-m.Events():
// handle events
}
- Install
make
,clang
,Android NDK
ANDROID_NDK=/path/to/android-ndk make all
- bpf_core_read.h LGPL-2.1 OR BSD-2-Clause