[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Where are we with SB? What's missing?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Wed, 2018-12-05 at 03:40 +0000, Ben Hutchings wrote:
> > > Have we tested that grub2 and linux do not allow loading unsigned
> > > kernels / modules? (AFAIK yes, but let's make sure.)
> > 
> > It's definitely worth making sure, yes.
> 
> I haven't tested this recently in linux.

I just did some limited testing and it does work fine. I've added the test key
from Luke in the MOK and enabled secure boot in the bios of my ThinkPad X250.

With that:

- - grub loads fine
- - 4.18 kernel doesn't load
- - 4.19 kernel loads fine
- - dkms locally built modules don't load:
  modprobe hdaps
  modprobe: ERROR: could not insert 'hdaps': Required key not available
  déc. 07 21:42:07 scapa kernel: Lockdown: Loading of unsigned modules is
restricted; see man kernel_lockdown.7
- - kexec doesn't work:
  kexec /boot/vmlinuz-4.18.0-3-amd64 
  kexec_load failed: Operation not permitted
  déc. 07 21:43:13 scapa kernel: Lockdown: kexec of unsigned images is
restricted; see man kernel_lockdown.7

I didn't do advanced stuff to try to execute arbitrary code.

I can't test fwupd because my X250 is not supported at the moment (not sure if
it will be one day).

Regards,
- -- 
Yves-Alexis
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEE8vi34Qgfo83x35gF3rYcyPpXRFsFAlwK3EEACgkQ3rYcyPpX
RFsOKgf9FcCBDHjscz+haU2mYzAqEagCWzI0kafvYTlh339orSj6HTDkBGsmUDRm
MaE9OKl841zw65vwQKxFGyOJPirq9r7iAyenZEtTHOGqrGO6lKCipan6LnJn6Sse
QO1s4/KLW277QMFTQ2Qks0YlPndTnJ7j/wtMw79sFGJLFKuPxZ3qlNZGWNpnPbj7
dT6d1MhEIGfqs1u8XkKopFCPyFlzjLihnjQr65AKrDe+d/Idtxp9rAKtidSn8SrI
vSr7IjdD5B2X3YHXm4BJHOZT8Mc9bdFiN51dBqL6tR7YFEQPNRIuZWo7aKcEA2IB
rPvBH7pBjAi8+kp5XFpNlWYBfyJ5dg==
=8lu3
-----END PGP SIGNATURE-----


Reply to: