linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Glynn Clements <glynn@gclements.plus.com>
To: vintya@excite.com
Cc: jtwilliams@vt.edu, linux-c-programming@vger.kernel.org
Subject: Re: Problem in accessing executable files
Date: Mon, 7 Feb 2005 18:31:24 +0000	[thread overview]
Message-ID: <16903.46076.277968.721463@gargle.gargle.HOWL> (raw)
In-Reply-To: <20050206224101.B1F71B6CB@xprdmailfe15.nwk.excite.com>


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 <glynn@gclements.plus.com>

  reply	other threads:[~2005-02-07 18:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-06 22:41 Problem in accessing executable files Vineet Joglekar
2005-02-07 18:31 ` Glynn Clements [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-02-09  0:14 Vineet Joglekar
2005-02-09  0:21 ` Al Viro
2005-02-08  2:33 Vineet Joglekar
2005-02-01 13:58 Vineet Joglekar
2005-02-01 15:37 ` John T. Williams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=16903.46076.277968.721463@gargle.gargle.HOWL \
    --to=glynn@gclements.plus.com \
    --cc=jtwilliams@vt.edu \
    --cc=linux-c-programming@vger.kernel.org \
    --cc=vintya@excite.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).