Re: current->uid is zero ?!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello!

On 7/1/05, MHD.Tayseer <gilmour@xxxxxxxxxxx> 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/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux