title: How to get username from Linux kernel space
body: <p>I am doing some Linux module development, restricting me to only kernel-available libraries, and I'd like to get the username of the user who is interacting with my module's username. AKA their "whoami". My module is actually wrapping around syscalls... I can get pid's from current->pid in kernel space. Is there any way to, perhaps, use the pid to track down the user to whom the pid belongs? Or another more simple way?</p>
  
  <p>Thanks </p>