From mboxrd@z Thu Jan 1 00:00:00 1970 From: Al Viro Subject: Re: [PATCH 1/3] IMA: move read/write counters into struct inode Date: Wed, 20 Oct 2010 14:36:38 +0100 Message-ID: <20101020133638.GA19804@ZenIV.linux.org.uk> References: <20101019011650.25346.99614.stgit@paris.rdu.redhat.com> <1287506215.2530.187.camel@localhost.localdomain> <20101019165530.GT19804@ZenIV.linux.org.uk> <20101019172805.GU19804@ZenIV.linux.org.uk> <1287512182.3167.130.camel@localhost.localdomain> <19646.59971.76978.642955@quad.stoffel.home> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Mimi Zohar , Linus Torvalds , Eric Paris , linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, linux-fsdevel@vger.kernel.org, hch@infradead.org, Mimi Zohar , warthog9@kernel.org, david@fromorbit.com, jmorris@namei.org, kyle@mcmartin.ca, hpa@zytor.com, akpm@linux-foundation.org, mingo@elte.hu To: John Stoffel Return-path: Content-Disposition: inline In-Reply-To: <19646.59971.76978.642955@quad.stoffel.home> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org 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...