Re: [PATCH V3 03/11] x86: Lock down IO port access when module securityis enabled

From: H. Peter Anvin
Date: Wed Sep 04 2013 - 23:52:48 EST


On 09/03/2013 04:50 PM, Matthew Garrett wrote:
> IO port access would permit users to gain access to PCI configuration
> registers, which in turn (on a lot of hardware) give access to MMIO register
> space. This would potentially permit root to trigger arbitrary DMA, so lock
> it down by default.
>
> Signed-off-by: Matthew Garrett <matthew.garrett@xxxxxxxxxx>

Seriously... just deny CAP_SYS_RAWIO to any system in secure mode.

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