On 03/06/11 01:38, Greg Troxel wrote:
> Shawn Willden <[email protected]> writes:
>> On Thu, Jun 2, 2011 at 4:48 PM, Greg Troxel <[email protected]> wrote:
>>
>>> But when they look up a subdirectory in the
>>> directory, do they somehow get a readcap, or do they get the writecap?
>>
>> They get a readcap.
> 
> So with a writecap, a read operation returns the subdir writecap?
> Do directories have both, always?

Usually, but not always. If you specify a writecap when putting a
child in a (mutable) directory, then the directory will store both
the readcap and the writecap. The writecap will be encrypted
(independently of the encryption of the whole directory contents)
so that only holders of the parent directory writecap can access it.

If you specify a readcap when putting a child in a directory, then
the directory will store only the readcap, and the writecap "column"
will be blank. The child might actually be mutable and have a writecap,
but it will not be writeable via that directory.

It is also possible to put an unknown cap, i.e. one not recognised by
the version of Tahoe running the gateway, into a directory, provided
that it is prefixed with "ro." asserting that it is a readcap.

Immutable directories can only contain readcaps for immutable objects.

-- 
David-Sarah Hopwood ⚥ http://davidsarah.livejournal.com

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
tahoe-dev mailing list
[email protected]
http://tahoe-lafs.org/cgi-bin/mailman/listinfo/tahoe-dev

Reply via email to