Intercepting memory mapped files
bawejakunal15 at gmail.com
Fri Jan 30 06:48:21 EST 2015
Yeah I was trying something similar only but with a much simpler Caeser
cipher function of my own written as below:
void encrypt(char *data, char *encrypted, size_t size)
unsigned int i;
encrypted[i] = data[i] + 3;
So in the given code wherever u see the calls to *wrapfs_encrypt*, I have
replaced with my simpler encryption function.
But I am not able to figure out why calling this function creates a
problem, the printk() statement inside the function shows me the correctly
encrypted contents but the file is still blank.
Undergraduate B.E. (Hons.) Computer Science
Birla Institute Of Technology & Science, Pilani
K.K. Birla Goa Campus
On Fri, Jan 30, 2015 at 4:03 PM, Saket Sinha <saket.sinha89 at gmail.com>
> Kindly refer the following link that implements a minimal encryption over
> Go through the wrapfs_encrypt in wrapfs_readpage and wrapfs_decrypt in
> Saket Sinha
> On Fri, Jan 30, 2015 at 3:56 PM, Kunal Baweja <bawejakunal15 at gmail.com>
>> I am currently working on implementing a simple encrypted file system
>> using a stackable file system WrapFS <http://wrapfs.filesystems.org/>.
>> In order to do so, as I read in the WrapFS mailing list
>> one needs to implement address space operations, which I have done and
>> posted on my github at this link
>> and it works fine. But now when I am trying to modify the data before being
>> written in wrapfs_lower() function I get a blank output in files written
>> Please guide where am I going wrong in modifying the data to be written
>> and what could be the best way to decrypt it ?
>> *Kunal Baweja*
>> Undergraduate B.E. (Hons.) Computer Science
>> Birla Institute Of Technology & Science, Pilani
>> K.K. Birla Goa Campus
>> +91 9049655665
>> Kernelnewbies mailing list
>> Kernelnewbies at kernelnewbies.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Kernelnewbies