From: "Joseph D. Wagner" Subject: RE: Does sendfile() copy extended attributes? Date: Sun, 21 Dec 2003 05:01:22 -0600 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <001001c3c7b1$c5b729c0$0201a8c0@joe> References: <20031220204040.GA28180@mail.shareable.org> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8BIT Cc: "'maximilian attems'" , Return-path: Received: from ssa8.serverconfig.com ([209.51.129.179]:29144 "EHLO ssa8.serverconfig.com") by vger.kernel.org with ESMTP id S262674AbTLULBY convert rfc822-to-8bit (ORCPT ); Sun, 21 Dec 2003 06:01:24 -0500 To: "'Jamie Lokier'" In-Reply-To: <20031220204040.GA28180@mail.shareable.org> List-Id: linux-fsdevel.vger.kernel.org >> Because that violates one of the Immutable Laws of Security -- "If >> you're running someone else's program, it's not your program anymore." > That is equally the case if you're running someone else's function. Sendfile() is a KERNEL function. If a hacker has compromised the kernel, what's the point of exploiting a PRIVILEGE ELEVATION vulnerability in a program? You don't get any higher privileges than the kernel itself. > A hacker could also change libc.so and thereby change the copy function. Not without ALREADY compromising the root account. Remember, the vulnerability I'm addressing is PRIVILEGE ELEVATION. You can't elevate privileges any higher than root. > You are imagining a black box function which is specified to copy a > file and its attributes. How can you know that function does not work > by calling an external program? I didn't say it doesn't work. I just said that executing an external program is too much of a security risk. Joseph D. Wagner