[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20101020133638.GA19804@ZenIV.linux.org.uk>
Date: Wed, 20 Oct 2010 14:36:38 +0100
From: Al Viro <viro@...IV.linux.org.uk>
To: John Stoffel <john@...ffel.org>
Cc: Mimi Zohar <zohar@...ux.vnet.ibm.com>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Eric Paris <eparis@...hat.com>, linux-kernel@...r.kernel.org,
linux-security-module@...r.kernel.org,
linux-fsdevel@...r.kernel.org, hch@...radead.org,
Mimi Zohar <zohar@...ibm.com>, warthog9@...nel.org,
david@...morbit.com, jmorris@...ei.org, kyle@...artin.ca,
hpa@...or.com, akpm@...ux-foundation.org, mingo@...e.hu
Subject: Re: [PATCH 1/3] IMA: move read/write counters into struct inode
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?
rename(2). Prohibition against write(2) to binary being executed is
*old*. Try to do the following:
cp /bin/sh /tmp
/tmp/sh &
cat /bin/ls >/tmp/sh
and you'll get
sh: /tmp/sh: Text file busy
That has nothing to do with IMA...
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists