Get a uid

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

 



Hello,

I want to get the uid from the processus that called my syscall. This is 
why I use the macro "current". But when I do :

printk("getdents64: %d %d %d %d\n",current->uid,
		current->euid,current->gid,current->egid);

I always receive "getdents64: -1 -1 -1 1633812480"

I don't understand what I did wrong. Can you give me some help ?

If you need more information, I can give the source code.

Thanks

-- 
Fabien Carrion

()  Campagne du ruban ASCII -- Contre les mails en html
/\  contre les pieces-jointes Microsoft
--
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