Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HFqkb-0004ij-Fq for qemu-devel@nongnu.org; Sat, 10 Feb 2007 06:50:41 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HFqkZ-0004hi-DA for qemu-devel@nongnu.org; Sat, 10 Feb 2007 06:50:40 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HFqkZ-0004hc-9y for qemu-devel@nongnu.org; Sat, 10 Feb 2007 06:50:39 -0500 Received: from averell.tiscali.it ([213.205.33.55]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HFqkY-0003IB-Oh for qemu-devel@nongnu.org; Sat, 10 Feb 2007 06:50:39 -0500 Received: from c1358217.kevquinn.com (84.223.99.178) by averell.tiscali.it (7.2.079) id 458977D0005569BF for qemu-devel@nongnu.org; Sat, 10 Feb 2007 12:50:33 +0100 Date: Sat, 10 Feb 2007 12:53:08 +0100 From: "Kevin F. Quinn" Subject: CAP_NET_ADMIN (was Re: [Qemu-devel] Two quick requests.) Message-ID: <20070210125308.79379cd4@c1358217.kevquinn.com> In-Reply-To: <200702092248.52614.paul@codesourcery.com> References: <200702091719.16429.rob@landley.net> <200702092227.09299.paul@codesourcery.com> <20070209223359.GU29333@erizo.shearer.org> <200702092248.52614.paul@codesourcery.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_W4B+viY33I1oIJ7l=cOAN++"; protocol="application/pgp-signature"; micalg=PGP-SHA1 Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --Sig_W4B+viY33I1oIJ7l=cOAN++ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Fri, 9 Feb 2007 22:48:51 +0000 Paul Brook wrote: > I've very little sympathy (read: none) for people who "accidentally" > break things by running them as root. On a related note, I've been running qemu(-system 0.8.2) as root recently as a hopefully temporary measure so that it can setup the network interfaces. Recent linux kernels require CAP_NET_ADMIN for the tun network configuration that qemu does (specifically the TUNSETIFF ioctl), and the only way to get the capability is to start the process as root. Other capabilities could be dropped; as indeed could CAP_NET_ADMIN once the network configuration is done, but that means modifications to qemu itself to release the capabilities, and would still leave qemu as a suid-root binary, which it would be nicer to avoid. Is there any way around this? I expected to be able to configure capabilities for executables in the filesystem, but it appears there are serious problems with that concept so the kernel doesn't support it. --=20 Kevin F. Quinn --Sig_W4B+viY33I1oIJ7l=cOAN++ Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFFzbIp9G2S8dekcG0RAjUvAKDvBJs+nw0GerhpcQ2rBPC9a4ucxwCg01W9 5HACtXHJw4BPdJsOhpZy+oQ= =pZby -----END PGP SIGNATURE----- --Sig_W4B+viY33I1oIJ7l=cOAN++--