Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752658AbaG0VGo (ORCPT ); Sun, 27 Jul 2014 17:06:44 -0400 Received: from imap.thunk.org ([74.207.234.97]:59504 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752524AbaG0VGk (ORCPT ); Sun, 27 Jul 2014 17:06:40 -0400 Date: Sun, 27 Jul 2014 17:06:17 -0400 From: "Theodore Ts'o" To: Andy Lutomirski Cc: "Eric W. Biederman" , Julien Tinnes , David Drysdale , Al Viro , Paolo Bonzini , LSM List , Greg Kroah-Hartman , Paul Moore , James Morris , Linux API , Meredydd Luff , Christoph Hellwig , "linux-kernel@vger.kernel.org" , Kees Cook , Henrique de Moraes Holschuh , linux-crypto@vger.kernel.org Subject: Re: General flags to turn things off (getrandom, pid lookup, etc) Message-ID: <20140727210617.GY6725@thunk.org> Mail-Followup-To: Theodore Ts'o , Andy Lutomirski , "Eric W. Biederman" , Julien Tinnes , David Drysdale , Al Viro , Paolo Bonzini , LSM List , Greg Kroah-Hartman , Paul Moore , James Morris , Linux API , Meredydd Luff , Christoph Hellwig , "linux-kernel@vger.kernel.org" , Kees Cook , Henrique de Moraes Holschuh , linux-crypto@vger.kernel.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 25, 2014 at 11:30:48AM -0700, Andy Lutomirski wrote: > > There is recent interest in having a way to turn generally-available > kernel features off. Maybe we should add a good one so we can stop > bikeshedding and avoid proliferating dumb interfaces. I believe the seccomp infrastructure (which is already upstream) should be able to do most of what you want, at least with respect to features which are exposed via system calls (which was most of your list). It won't cover x86 specific things like restricting RDTSC or CPUID (and as far as I know you can't intercept the CPUID instruction), but I'm not sure it matters. I don't really see the point, myself. - Ted -- 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/