3 ms·
Run a daemon with the right userid to do the writing, and have it make a pipe device for each user to write lines into. I don't know how much effort is meant t
by throwawaymobule 3y ago
Run a daemon with the right userid to do the writing, and have it make a pipe device for each user to write lines into.
I don't know how much effort is meant to be put into securing this from impersonation, but info can be pulled out of /proc/ if the permissions are set up right.
- zokier 3y agoHmm apparently there is this thing SO_PEERCRED which gives you the identity of the client connected to unix socket, that might fit here quite well.