UBUNTU: SAUCE: Add selective signing of staging modules
BugLink: https://bugs.launchpad.net/bugs/1642368 'Untrusted' staging modules shouldn't be loadable in a secure boot environment so only sign modules listed in debian/signature-inclusion. Signed-off-by: Juerg Haefliger <juerg.haefliger@canonical.com> Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
This commit is contained in:
committed by
Paolo Pisati
parent
a6ecb4e674
commit
47f076fe3a
@@ -101,8 +101,13 @@ else
|
||||
sig-key := $(CONFIG_MODULE_SIG_KEY)
|
||||
endif
|
||||
quiet_cmd_sign = SIGN $@
|
||||
cmd_sign = scripts/sign-file $(CONFIG_MODULE_SIG_HASH) "$(sig-key)" certs/signing_key.x509 $@ \
|
||||
$(if $(KBUILD_EXTMOD),|| true)
|
||||
cmd_sign = if echo "$@" | grep -qF "/drivers/staging/" && \
|
||||
test -f $(srctree)/debian/signature-inclusion && \
|
||||
! grep -qFx "$(notdir $@)" $(srctree)/debian/signature-inclusion ; \
|
||||
then echo "UBUNTU: Not signing $@" ; \
|
||||
else scripts/sign-file $(CONFIG_MODULE_SIG_HASH) $(sig-key) certs/signing_key.x509 $@ \
|
||||
$(if $(KBUILD_EXTMOD),|| true) ; \
|
||||
fi
|
||||
|
||||
ifeq ($(sign-only),)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user