I am writing an LKM (loadable kernel Module) in C, I want to fetch information about users logged in currently and who is going to logout and login while LKM loaded.
Problem is LKM uses only system calls not library calls.
I have read utmp.h it uses library calls but LKM need system calls for this purpose.
I have also used strace who but I didn't get solution.