martinpitt / fatrace

report system wide file access events
GNU General Public License v3.0
173 stars 12 forks source link

-u, --user to show username of file event in output #16

Open porg opened 2 years ago

porg commented 2 years ago

Feature Request

Related

martinpitt commented 2 years ago

fanotify() does not support this directly, but we could read the source pid's current euid.

porg commented 2 years ago

I'm not Linux savvy enough to know what's the correct way to determine this (fanotify et al), but anything which gives me a clue about the user from which the activity comes from would be appreciated. 😉

porg commented 1 year ago

Any plans for implementation?

gabrielkulp commented 1 year ago

Alright I tried to implement this in pull request #27. Does that meet your requirements, @porg?

porg commented 1 year ago

Hi @gabrielkulp , thanks for contributing! 1) I cannot test this myself as I do not know how to pull your commit and built fatrace (for other feature tests, @martinpitt was so kind and built the binaries for me) 2) But I can give you feedback on the basis of your textual description for pull request #27: