@@ -22,8 +22,10 @@ quiet_cmd_modules_install = INSTALL $@
mkdir -p $(2) ; \
cp $@ $(2) ; \
$(mod_strip_cmd) $(2)/$(notdir $@) ; \
- $(mod_sign_cmd) $(2)/$(notdir $@) $(patsubst %,|| true,$(KBUILD_EXTMOD)) && \
- $(mod_compress_cmd) $(2)/$(notdir $@)
+ if echo "$(2)/$(notdir $@)" | egrep -q "\/drivers\/staging\/" ; \
+ then echo Not signing "$(2)/$(notdir $@)"; \
+ else $(mod_sign_cmd) $(2)/$(notdir $@) $(patsubst %,|| true,$(KBUILD_EXTMOD)) && \
+ $(mod_compress_cmd) $(2)/$(notdir $@); fi
# Modules built outside the kernel source tree go into extra by default
INSTALL_MOD_DIR ?= extra
BugLink: http://bugs.launchpad.net/bugs/1642368 Prevent staging drivers from being loadable in a secure boot environment. Signed-off-by: Tim Gardner <tim.gardner@canonical.com> --- v2 - Of course this is a Yakkety patch. scripts/Makefile.modinst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)