Dazuko - Patches: patch #5356, Blocking close patch
You are not allowed to post comments on this tracker with your current authentication level.
patch #5356: Blocking close patch
Submitter: | Sami Tikka <sti> | ||
Submitted: | Thu 31 Aug 2006 12:11:59 PM UTC | ||
Assigned to: | None | Open/Closed: | Open |
Attached Files
file #10656: dazuko--contribute-blocking-close--2.3.1.tgz added by sti (2KiB - application/x-compressed - Blocking close, GNU arch changeset)
file #10655: dazuko-blocking-close.patch added by sti (2KiB - application/octet-stream - Blocking close, simple patch)
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 |
---|---|---|---|---|---|
2006-08-31 | sti | Attached File | - | Added dazuko--contribute-blocking-close--2.3.1.tgz, #10656 | |
2006-08-31 | sti | Attached File | - | Added dazuko-blocking-close.patch, #10655 |
Powered by Savane 3.13-4448.
Corresponding source code
This patch makes application calling the close syscall block while dazuko daemon(s) processes the access request.
Some applications might check the return value of close and do the right thing if close reports a failure.
More importantly, if dazuko is configured with --disable-chroot-support, dazuko will get filenames with "chroot:" prefixed to them for chrooted processes. The dazuko daemon will need to readlink /proc/PID/root to find out the real path of the file. If processes do not block in close, they might exit before the dazuko daemon can get the full path.