From mboxrd@z Thu Jan 1 00:00:00 1970 From: Edward Shishkin Subject: Re: Basic interface for key management in reiser4 (DRAFT) Date: Tue, 23 Aug 2005 19:48:38 +0400 Message-ID: <430B4556.6000608@namesys.com> References: <43034EC4.9040906@namesys.com> <43039594.3040300@namesys.com> <4304D492.5010203@namesys.com> <43052842.6050505@namesys.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: list-help: list-unsubscribe: list-post: Errors-To: flx@namesys.com In-Reply-To: <43052842.6050505@namesys.com> List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Hans Reiser Cc: Reiserfs developers mail-list , Reiserfs List Hans Reiser wrote: >Edward Shishkin wrote: > > > >>> >>>When you load a key, who can access the file? Only the person who >>>loaded it, yes or? >>> >>> >>> >>Currently standard unix permissions work here. >> >> > >but the idea is to use keys instead of standard unix permissions.... > >I think you need to store keys in a per process place, and allow >specifying whether children of a process inherit the keys somehow. > > Unfortunately the encrypt-on-flush violates all this beauty: the flush, which serves all the files, can not look for a key in the process keyring (*), therefore besides the process keyrings, reiser4 should create and manage its own keyring (accessible to the flush). It means additional charges on searching, hashing, updating, etc.. (*) Because: 1) the flush does not have needed task_struct; 2) the flush can not return an error if someone killed the key in the process keyring. Edward.