patchDazuko - Patches: patch #4602, Use d_path when __d_path is not...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #4602: Use d_path when __d_path is not safe

Submitter:  Sami Tikka <sti>
Submitted:  Mon 07 Nov 2005 04:30:14 PM UTC
   
 
Assigned to:  None Open/Closed:  Closed

Mon 07 Nov 2005 09:23:54 PM UTC, comment #1: 

A modified version of this patch has been applied to CVS and will be officially available for 2.1.1-pre3.

John Ogness <ogman>
Group administrator
Mon 07 Nov 2005 04:30:14 PM UTC, original submission:  

The use of local __d_path is not recommended on SMP systems because it cannot take the necessary locks to play it safe.

This patch makes dazuko use d_path if __d_path is not exported and it is configured for an SMP kernel.

The downside of using d_path is that filenames accessed by chrooted processes are reported wrong, they are relative to the chroot, not the real root. To make the dazuko-registered daemon aware of this, the filenames of chrooted processes are reported without the leading / character.

I.e. if dazuko is running on an SMP system with no exported __d_path and a chrooted process opens the file "/tmp/foobar", dazuko will report it as "tmp/foobar".

This is a signal to the dazuko-registered daemon that dazuko could not figure out the absolute full filename. The daemon should readlink /proc/pid-of-the-process/root and append to it the filename reported by dazuko.

Sami Tikka <sti>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #6807:  d_path.patch added by sti (5KiB - text/x-patch - Patch to use d_path when __d_path is not safe)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-11-07 ogman Open/ClosedOpen Closed
2005-11-07 sti Attached File- Added d_path.patch, #5446

Back to the top

Powered by Savane 3.13-4448.
Corresponding source code