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


_______________________________________________
Dazuko-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/dazuko-devel

Reply via email to