Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Why such a hack? This is a solved problem already. Try Linux audit API. You can set it up for tracking various actions, and you'll get a log with all the information including a process name.

https://linux-audit.com/configuring-and-auditing-linux-syste...



I believe the question was asking for a method of storing the metadata, I was just suggesting xattrs. This will work at the expense of running a daemon.


Can audit be configured to only log file creation, not modification or access? Last time I didn't find a way to do that and I don't want to write a log file entry for every file access.


You can at least ignore read events, not sure about separating write from creation.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: