Vineet Joglekar wrote:

> Thanks for suggesting the single / few bytes encryption test. I tried
> doing that, but in vain. Maybe I am going wrong somewhere else.

I'm pretty sure that mmap'ed access doesn't go through
do_generic_file_read().

Executable files (programs and shared libraries) are normally mmap'ed
rather than read, which would explain why you have problems with
executable files.

Try writing a test program which reads the contents of a file using
mmap() rather than read(). If my assumption is correct, the decryption
code will be bypassed, so you will get the encrypted data.

-- 
Glynn Clements <[EMAIL PROTECTED]>
-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" 
in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to