Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756182Ab2BGMkj (ORCPT ); Tue, 7 Feb 2012 07:40:39 -0500 Received: from mx1.redhat.com ([209.132.183.28]:7889 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755676Ab2BGMkh (ORCPT ); Tue, 7 Feb 2012 07:40:37 -0500 Message-ID: <4F311BBD.5050600@redhat.com> Date: Tue, 07 Feb 2012 14:40:29 +0200 From: Avi Kivity User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20120131 Thunderbird/10.0 MIME-Version: 1.0 To: Anthony Liguori CC: Scott Wood , qemu-devel , linux-kernel , Eric Northup , KVM list Subject: Re: [Qemu-devel] [RFC] Next gen kvm api References: <4F2AB552.2070909@redhat.com> <4F2C6517.3040203@codemonkey.ws> <4F302E0D.20302@freescale.com> <4F3118EA.7040302@codemonkey.ws> In-Reply-To: <4F3118EA.7040302@codemonkey.ws> 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 Content-Length: 1087 Lines: 29 On 02/07/2012 02:28 PM, Anthony Liguori wrote: > >> It's a potential source of exploits >> (from bugs in KVM or in hardware). I can see people wanting to be >> selective with access because of that. > > As is true of the rest of the kernel. > > If you want finer grain access control, that's exactly why we have > things like LSM and SELinux. You can add the appropriate LSM hooks > into the KVM infrastructure and setup default SELinux policies > appropriately. LSMs protect objects, not syscalls. There isn't an object to protect here (except the fake /dev/kvm object). In theory, kvm is exactly the same as other syscalls, but in practice, it is used by only very few user programs, so there may be many unexercised paths. -- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain. -- 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/