public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Mimi Zohar <zohar@linux.vnet.ibm.com>
Cc: linux-kernel@vger.kernel.org, safford@watson.ibm.com,
	serue@linux.vnet.ibm.com, sailer@watson.ibm.com,
	zohar@us.ibm.com, sds@tycho.nsa.gov, casey@schaufler-ca.com
Subject: Re: [RFC][Patch 5/5]integrity: IMA as an integrity service provider
Date: Thu, 29 May 2008 19:04:27 -0700	[thread overview]
Message-ID: <20080529190427.81d7301a.akpm@linux-foundation.org> (raw)
In-Reply-To: <1212112688.4722.10.camel@new-host.home>

On Thu, 29 May 2008 21:58:08 -0400 Mimi Zohar <zohar@linux.vnet.ibm.com> wrote:

> > erk, I'm not an i_version person.  It seems that it's only used on
> > directories (to patch up readdir coherency problems) so I guess I
> > misled you there.
> 
> No, no.  Initially, that's what I thought. I finally found
> file_update_time() calls inode_inc_iversion(), which updates 
> the i_version.  So, it does work.  The question is whether
> or not it works all the time. :-)

OK.

Before 2.6.17 it wouldn't have worked much at all on MAP_SHARED
modifications.

After 2.6.17 things will be better - we update the mtime on the
clean->dirty transitions of a page.  So the first modification after an
mmap will update the time.

Subsequent modifications via the mmap will not update the file time. 
Until something (usually pdflush) writes the page out.  Then the next
modification via mmap will cause another clean->dirty transition on the
page, hence another mtime update.

So there's a by-default 30-odd second uncertainty with MAP_SHARED
alterations.


  reply	other threads:[~2008-05-30  2:05 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-23 15:05 [RFC][Patch 5/5]integrity: IMA as an integrity service provider Mimi Zohar
2008-05-23 23:30 ` Randy Dunlap
2008-05-27  1:02   ` Mimi Zohar
2008-05-27 14:36   ` Mimi Zohar
2008-06-11 22:31     ` Randy Dunlap
2008-05-28  8:22 ` Andrew Morton
2008-05-29  3:17   ` Mimi Zohar
2008-05-29  3:30     ` Andrew Morton
2008-05-29 21:50       ` Mimi Zohar
2008-05-29 23:35         ` Andrew Morton
2008-05-30  1:58           ` Mimi Zohar
2008-05-30  2:04             ` Andrew Morton [this message]
2008-05-30 13:06       ` Mimi Zohar
2008-05-29  3:33   ` Mimi Zohar
2008-05-31  7:54   ` Pavel Machek
2008-06-24 16:28     ` david safford
2008-08-05 17:35       ` Pavel Machek
2008-06-24 16:28   ` david safford
2008-08-05 17:32     ` Pavel Machek
     [not found] <20080627131946.225566613@linux.vnet.ibm.com>
2008-06-27 16:23 ` [RFC][PATCH 5/5] integrity: " Mimi Zohar

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=20080529190427.81d7301a.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=casey@schaufler-ca.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=safford@watson.ibm.com \
    --cc=sailer@watson.ibm.com \
    --cc=sds@tycho.nsa.gov \
    --cc=serue@linux.vnet.ibm.com \
    --cc=zohar@linux.vnet.ibm.com \
    --cc=zohar@us.ibm.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