Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 2 Nov 2002 23:03:48 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 2 Nov 2002 23:03:48 -0500 Received: from leibniz.math.psu.edu ([146.186.130.2]:2011 "EHLO math.psu.edu") by vger.kernel.org with ESMTP id ; Sat, 2 Nov 2002 23:03:47 -0500 Date: Sat, 2 Nov 2002 23:10:16 -0500 (EST) From: Alexander Viro To: Dax Kelson cc: Linus Torvalds , Olaf Dietsche , "Theodore Ts'o" , Rusty Russell , "linux-kernel@vger.kernel.org" , "davej@suse.de" Subject: Re: Filesystem Capabilities in 2.6? 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 Content-Length: 1056 Lines: 26 On Sat, 2 Nov 2002, Dax Kelson wrote: > On Sat, 2 Nov 2002, Alexander Viro wrote: > > > that can be done without doing anything to filesystem. > > Namely, turn current "nosuid" of vfsmount into a mask of capabilities. > > Then use bindings instead of links. *Note* - binary _is_ marked suid, > > mask tells which capabilities _not_ to gain. It's OK - attempt to > > link(2) to the thing using binding will see that oldname and newname > > are within different vfsmounts, so instead of link to suid-root binary > > you get -EXDEV. > > Any thoughts on how /usr/bin/(rpm|dpkg) copes with setting up the binding > when installing a package? for example, /etc/init.d/foo-bindings.sh and update-rc.d invoked in post-install. Hell knows what RPM equivalent is, but there definitely is one... - 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/