1

I am hacking linux kernel and am trying to update the User_struct of a given user if given the UID. How do I access user_struct once given a UID/user id.

Scooby
  • 3,371
  • 8
  • 44
  • 84

1 Answers1

1

Try struct user_struct *find_user(uid_t uid) located in kernel/user.c

Here is a link to its definition in the Android Linux Kernel source code.

user862857
  • 483
  • 5
  • 6