From: One Thousand Gnomes Subject: Re: General flags to turn things off (getrandom, pid lookup, etc) Date: Fri, 25 Jul 2014 22:35:50 +0100 Message-ID: <20140725223550.3153f436@alan.etchedpixels.co.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Kees Cook , "Theodore Ts'o" , Henrique de Moraes Holschuh , linux-crypto-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Andy Lutomirski Return-path: In-Reply-To: Sender: linux-api-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-crypto.vger.kernel.org On Fri, 25 Jul 2014 11:30:48 -0700 Andy Lutomirski wrote: > [new thread because this sort of combines two threads] > > 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. We sort of have one. It's called capable(). Just needs extending to cover anything else you care about, and probably all the numeric constants replacing with textual names. Alan