RE: __d_path export and SMP safeness

"Tikka, Sami" <[email protected]>
Newsgroups gmane.linux.dazuko.devel
Message-ID <[email protected]>
My colleque had a brainwave. Read more below:

>-----Original Message-----
>From: [email protected] 
>[mailto:[email protected]
>] On Behalf Of Tikka, Sami
>Sent: Friday, September 02, 2005 4:25 PM
>To: [email protected]
>Subject: RE: [Dazuko-devel] __d_path export and SMP safeness
>
>
>>-----Original Message-----
>>From: Tushar [mailto:[email protected]]
>>Sent: Friday, September 02, 2005 3:18 PM
>>To: Tikka, Sami
>>Cc: [email protected]
>>Subject: Re: [Dazuko-devel] __d_path export and SMP safeness
>>
>>There is one function d_path. In kernel source 2.6.8, it is
>>exported. (One downloaded directly from kernel.org). Can we 
>>use that? It
>>internally use the same __d_path function with locking and unlocking.	
>
>Apparently d_path returns the pathname the process sees, which 
>might be different from the real pathname if the process is chrooted.

Dazuko could use the exported d_path. Then the filename the driver reports
will be relative to the current root of the process that made the file
access. But this is not a problem. The process which gets the dazuko events
can easily check readlink /proc/PID/root and prepend that to the filename in
the event.

What do you think, John? Could you make dazuko use d_path on Linux?

-- Sami
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.