[Help] How to Replace File Operations in File System?

Rishi Agrawal rishi.b.agrawal at gmail.com
Thu Feb 20 02:31:51 EST 2014


Hi,

I went through your readme. Some questions.


On Thu, Feb 20, 2014 at 7:02 AM, freeman <freeman.zhang1992 at gmail.com>wrote:

>  Hi Rishi,
>
> With pleasure!
> You can check it on https://github.com/freemandealer/droidcry
> on your convenience.
>
>  2014-02-19 23:17, Rishi Agrawal :
>
> Good that you solved it your self, still if you can send me the idea on
> which you are working - I may also learn something.
>
>
> On Tue, Feb 18, 2014 at 10:04 AM, freeman <freeman.zhang1992 at gmail.com>wrote:
>
>>
>> > Hi
>> >
>> > The operations will not change back until your object gets destroyed,
>> > whatever be the type of the object.
>> >
>> > Caching will not cause any issue here.
>> >
>> > Maybe if you can send the code we can have a look at it.
>> >
>> >
>> > --
>> > Regards,
>> > Rishi Agrawal
>>  Hi Rishi,
>>
>> It's very nice of you willing to help check my code!
>> I'm now very excited - problem solved!
>>
>> I spent half a day beautifying my code yesterday (so that it won't annoy
>> you
>> that much), and find there is a problem:
>>
>> Every time there is a read/write system call, I saved the lower file ops
>> and
>> address space ops. In their replacement(upper operations), I invoked
>> lower ones.
>> There's a possibility that it might saved the upper operations as lower
>> ones if I
>> open them twice in a short time. At this point, upper operation invoke
>> itself!
>> So I check the operations before truly save and replace them and, it
>> works!
>>
>> Thanks to you and all the amazing people in this amazing list that
>> helped me,
>> now I get both wrapfs and my own non-filesystem module functional for my
>> future work on transparent encryption, and most importantly, I've
>> learned and
>> enjoyed a lot!
>>
>> Regards
>> Freeman Zhang
>>
>
>
>
> --
> Regards,
> Rishi Agrawal
>
> Regards
> Freeman Zhang
>
>

1. How are you encrypting the files? Is it done by the encryptfs or you are
doing it in your module.

2. How can the user selectively encrypt the files in the system.


-- 
Regards,
Rishi Agrawal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140220/e177e350/attachment.html 


More information about the Kernelnewbies mailing list