Getting the file path of a file descriptor

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

 



Hi,

  I was wondering if I intercepted the system call such as read(). Can
I get the file path of the file descriptor somehow from the kernel
process's internal data structures or some helper functions? For
example if I had previously opened a file "abcd.txt", and then called
read on it, I would like to get the filepath "abcd.txt" from the fd
for the read().

   Also aside, I was wondering if it was all possible to get the file
path of the executable of the process itself. So if I was running a
program such as "ping", when I intercept the system calls of the
program, I want to know the filepath of the ping program.

Thanks,

Peter
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux