1 Jul 2005 18:01
Re: current->uid is zero ?!
Mattia Dongili <malattia <at> gmail.com>
2005-07-01 16:01:10 GMT
2005-07-01 16:01:10 GMT
Hello! On 7/1/05, MHD.Tayseer <gilmour <at> scs-net.org> wrote: > Hi everyone: > i'm implementing mkdir so i must set the uid and the gid of my newly > created inode, but i've noticed that all of : > current->uid > current->euid > current->fsuid > are zeros ? am i doing something wrong or this result is right and i'm > missing something ? Just trying my first guess: are you running mkdir as root? > and what is the fsuid ? "difference from uid ? second guess: maybe has something to do with the uid eventually assigned through mount options? -- -- mattia :wq! -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/
RSS Feed