From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932226Ab0CXQVE (ORCPT ); Wed, 24 Mar 2010 12:21:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:23357 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754813Ab0CXQVA (ORCPT ); Wed, 24 Mar 2010 12:21:00 -0400 Message-ID: <4BAA3BD6.8030401@redhat.com> Date: Wed, 24 Mar 2010 18:20:38 +0200 From: Avi Kivity User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100301 Fedora/3.0.3-1.fc12 Thunderbird/3.0.3 MIME-Version: 1.0 To: Joerg Roedel CC: "Daniel P. Berrange" , Anthony Liguori , Ingo Molnar , Pekka Enberg , "Zhang, Yanmin" , Peter Zijlstra , Sheng Yang , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Marcelo Tosatti , Jes Sorensen , Gleb Natapov , ziteng.huang@intel.com, Arnaldo Carvalho de Melo , Fr?d?ric Weisbecker , Gregory Haskins Subject: Re: [RFC] Unify KVM kernel-space and user-space code into a single project References: <20100324125043.GC14800@8bytes.org> <4BAA0DFE.1080700@redhat.com> <20100324134642.GD14800@8bytes.org> <4BAA1A53.20207@redhat.com> <20100324150137.GE14800@8bytes.org> <20100324152653.GA12225@redhat.com> <20100324153746.GF14800@8bytes.org> <4BAA3323.9000405@redhat.com> <20100324155041.GH14800@8bytes.org> <4BAA3556.2040802@redhat.com> <20100324161711.GJ14800@8bytes.org> In-Reply-To: <20100324161711.GJ14800@8bytes.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/24/2010 06:17 PM, Joerg Roedel wrote: > On Wed, Mar 24, 2010 at 05:52:54PM +0200, Avi Kivity wrote: > >> On 03/24/2010 05:50 PM, Joerg Roedel wrote: >> >>> If we go the /proc//kvm way then the directory should probably >>> inherit the label from /proc//? >>> >> That's a security policy. The security people like their policies >> outside the kernel. >> >> For example, they may want a label that allows a trace context to read >> the data, and also qemu itself for introspection. >> > Hm, I am not a security expert. I'm out of my depth here as well. > But is this not only one entity more for > sVirt to handle? I would leave that decision to the sVirt developers. > Does attaching the same label as for the VM resources mean that root > could not access it anymore? > IIUC processes run under a context, and there's a policy somewhere that tells you which context can access which label (and with what permissions). There was a server on the Internet once that gave you root access and invited you to attack it. No idea if anyone succeeded or not (I got bored after about a minute). So it depends on the policy. If you attach the same label, that means all files with the same label have the same access permissions. I think. -- error compiling committee.c: too many arguments to function