Re: Get the full path of the current process?

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

 



On Sat, 2005-12-31 at 10:47 +0900, NAHieu wrote:
> Hello,
> 
> I want to get the full path of the current process (using current
> pointer, in kernel 2.6.14). 

this is fundamentally not reliably possible.
1) The file may have been deleted or replaced since
2) The file may be a hardlink between places
3) In what namespace do you want the path to be? The kernels? The
process?

What do you want this for?
(And please don't say "a rootkit")


--
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