lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 20 Nov 2009 16:12:14 +0800
From:	Xiaotian Feng <xtfeng@...il.com>
To:	"Helight.Xu" <helight.xu@...il.com>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: 如何通过fd找到打开文件的路径及名称

in fs/open.c
   sys_open
             | --> do_sys_open
                          |--->  fd_install

Then fd is installed into file_fdtable

in fs/file_table.c
     fget_light/fget
            |----> fcheck_files

Then kernel get files from fd.

2009/11/20 Helight.Xu <helight.xu@...il.com>:
> 在用户程序中打开文件进行编辑,那在内核中如何能通过open后的fd
> 来找到相应打开文件的路径及其名字呢?
>
> --
> ---------------------------------
> Zhenwen Xu - Open and Free
> Home Page:      http://zhwen.org
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@...r.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ