![]() |
Modifying process descriptor in device driver
hi.
I have added the following code to modify the current process's euid in my device driver code. current->euid = 0; However, the above code does not seem to change euid of the current process. What am I doing wrong? I also want to know what current->fsuid holds. Thanks in advance. |
only a process that has real user id of 0 can set it's effective uid to just any value
this should be done with the POSIX function int seteuid(uid_t euid); Linux only has real effective and saved user and group ids so i have no idea what fsuid is |
All times are GMT -5. The time now is 08:25 AM. |