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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: John Stoffel
Date: Wednesday, October 20, 2010 - 6:10 am

>>>>> "Mimi" == Mimi Zohar <zohar@linux.vnet.ibm.com> writes:

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

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

Does this mean I can't replace /bin/sh on a running system using IMA
at all, even if just one process has it opened and is running?  So how
the hell am I supposed to do live upgrades on a system?  

Currently, /bin/sh gets replaced with the newer, better (for some
value of better :-) version, while currently running users aren't
impacted at all.  New users pick up the new binary.

Gah!  The only way to upgrade such a system would look be via a
reboot.  Not very nice at all... or can the root user disable IMA,
upgrade a binary, then re-start IMA on a system?  

So how does this improve security if root is compromised?

John
--
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 ..., John Stoffel, (Wed Oct 20, 6:10 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)