Re: [PATCH 26/26] x86, pkeys: Documentation

From: Ingo Molnar
Date: Fri Sep 25 2015 - 03:17:04 EST



* Andy Lutomirski <luto@xxxxxxxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/