Re: [PATCH 2/3] binfmt_elf: Verify signature of signed elf binary

From: H. Peter Anvin
Date: Sun Jan 20 2013 - 12:00:30 EST


On 01/20/2013 08:55 AM, Mimi Zohar wrote:
> On Sun, 2013-01-20 at 08:17 -0800, H. Peter Anvin wrote:
>> You then get into issues like: do we have to ban prelink as a result?
>
> Once you change a file, the original signature shouldn't match. If you
> really trust prelink, then make prelink a trusted application that can
> resign the modified file. How to create/store/use private keys on the
> target system is a separate issue.
>

That is true in a particularly brittle sense of the word, but it would
also be possible for the signature system to explicitly recognize the
transformation performed by prelink -- and no other -- before
verification. That being said, that may be quite complex.

-hpa


--
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/