Re: [PATCH 1/3] IMA: move read/write counters into struct inode
From: John Stoffel
Date: Wed Oct 20 2010 - 10:10:53 EST
>>>>> "Al" == Al Viro <viro@xxxxxxxxxxxxxxxxxx> writes:
Al> On Wed, Oct 20, 2010 at 09:10:27AM -0400, John Stoffel wrote:
>> 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?
Al> rename(2). Prohibition against write(2) to binary being executed is
Al> *old*. Try to do the following:
Al> cp /bin/sh /tmp
Al> /tmp/sh &
Al> cat /bin/ls >/tmp/sh
Al> and you'll get
Al> sh: /tmp/sh: Text file busy
Al> That has nothing to do with IMA...
Duh, makes sense. Thanks for educating me. I still IMA is a waste of
system resources...
John
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/