Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 15 Oct 2001 08:11:10 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 15 Oct 2001 08:11:00 -0400 Received: from leibniz.math.psu.edu ([146.186.130.2]:25039 "EHLO math.psu.edu") by vger.kernel.org with ESMTP id ; Mon, 15 Oct 2001 08:10:48 -0400 Date: Mon, 15 Oct 2001 08:11:20 -0400 (EDT) From: Alexander Viro To: Alan Cox cc: "Eric W. Biederman" , Linus Torvalds , linux-kernel@vger.kernel.org Subject: Re: [RFC] "Text file busy" when overwriting libraries In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 15 Oct 2001, Alan Cox wrote: > > Anyone can write it, but what the hell will he do without write access to > > any place that wouldn't be mounted noexec? Environment can be restricted > > even if you give them shell... > > He will type "perl" and interactively issue any damn syscall he likes > subject to the normal permissions rules. Noexec is only useful for a user > given virtually nothing. ... and will hit "permission denied" on attempt to exec /usr/bin/perl. Blanket noexec on /usr instance mounted in his chroot with selective turning the thing off on some binaries. And yes, I realize that one can always hunt for buffer overruns in sh(1)... - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/