LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Modifying process descriptor in device driver (https://www.linuxquestions.org/questions/linux-software-2/modifying-process-descriptor-in-device-driver-332171/)

drminix 06-10-2005 08:36 AM

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.

foo_bar_foo 06-12-2005 01:28 AM

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.