File monitoring software that will log file access to configured directories on the system.
- Linux OS
- Recent version of linux kernel, I used 5.3.7
systemd
based OSlibaudit
is available and installed in the systemlibpthread
is available and installed in the systemauditd
and friends are available and installed in the system
- Reinstall new version:
sudo killall auditd && make && sudo make install && sudo systemctl start auditd
- Gdb analysis of core in case of crash
sudo coredumpctl -1 gdb
- Following debugging output
journalctl -fu auditd
mkdir build
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
make
sudo make install
sudo install.sh
tail -f /tmp/file-monitor.log
- Change above for different logs
journalctl -fu auditd
- Watch here for any relevant app logs
- Is nametype truly the file access type?
- Add executable arguments to specify different config file
- Not such a hardcoded config file location ("/etc/file-monitor.conf")
- Make audit events logged configurable