how to get username of the current session in a system call?
I am trying to define a new system call which returns the current session's username. But the functions such as geteuid(), getpwd() all require pwd.h header file, which the is not present in the kernel.
Even header files like stdlib.h is giving some errors while recompiling the kernel.
"no such file or directory"
so cant we include any such header files in a system call?
Is there a way to get the present session's Username or UID in a systemcall?