Re: [PATCH 1/3] IMA: move read/write counters into struct inode

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Mimi Zohar
Date: Tuesday, October 19, 2010 - 11:16 am

On Tue, 2010-10-19 at 18:28 +0100, Al Viro wrote:

The filesystem prevents files being executed from being opened for
write.  The same guarantees that the file won't change, obviously,
doesn't exist for files being opened for read. Thus measuring a file
opened for read that has already been open for write, has no meaning.
Unfortunately, since the inode counters don't provide this information,
IMA maintains a separate set of counters.


You left out one minor detail, invalidate the PCR as well.

Mimi

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 1/3] IMA: move read/write counters into struct ..., Mimi Zohar, (Tue Oct 19, 11:16 am)
Re: [PATCH 1/3] IMA: move read/write counters into struct ..., J. Bruce Fields, (Wed Oct 20, 10:38 am)
Re: [PATCH 1/3] IMA: move read/write counters into struct ..., Casey Schaufler, (Fri Oct 22, 10:50 am)