From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755345AbbIYHRB (ORCPT ); Fri, 25 Sep 2015 03:17:01 -0400 Received: from mail-wi0-f174.google.com ([209.85.212.174]:38154 "EHLO mail-wi0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755269AbbIYHQ7 (ORCPT ); Fri, 25 Sep 2015 03:16:59 -0400 Date: Fri, 25 Sep 2015 09:16:45 +0200 From: Ingo Molnar To: Andy Lutomirski Cc: Dave Hansen , X86 ML , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , Linus Torvalds , Andrew Morton , Peter Zijlstra , Andy Lutomirski , Borislav Petkov , Kees Cook Subject: Re: [PATCH 26/26] x86, pkeys: Documentation Message-ID: <20150925071645.GA17385@gmail.com> References: <20150916174903.E112E464@viggo.jf.intel.com> <20150916174913.AF5FEA6D@viggo.jf.intel.com> <20150920085554.GA21906@gmail.com> <55FF88BA.6080006@sr71.net> <20150924094956.GA30349@gmail.com> <56044A88.7030203@sr71.net> 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) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Andy Lutomirski wrote: > This may mean that we want to have a way for binaries to indicate that they want > their --x segments to be loaded with a particular protection key. The right way > to do that might be using an ELF note, and I also want to use ELF notes to allow > turning off vsyscalls, so maybe it's time to write an ELF note parser in the > kernel. That would be absolutely lovely for many other reasons as well, and we should also add a tool to tools/ to edit/expand/shrink those ELF notes on existing systems. I.e. make it really easy to augment security policies on an existing distro, using any filesystem (not just ACL capable ones) and using the binary only. Linux binaries could carry capabilities information, etc. etc. Thanks, Ingo