diff mbox series

[Unstable/K,1/2] UBUNTU: Revert "UBUNTU: [Packaging] Strip signatures from untrusted staging modules"

Message ID 20220621131822.1583383-2-juerg.haefliger@canonical.com
State New
Headers show
Series linux: Staging modules should be unsigned (LP: #1642368) | expand

Commit Message

Juerg Haefliger June 21, 2022, 1:18 p.m. UTC
BugLink: https://bugs.launchpad.net/bugs/1642368

This reverts commit 8c1f5d050f235485f8fc1c583afcc581840ac5be.

Signed-off-by: Juerg Haefliger <juerg.haefliger@canonical.com>
---
 debian/rules.d/2-binary-arch.mk | 11 -----------
 1 file changed, 11 deletions(-)
diff mbox series

Patch

diff --git a/debian/rules.d/2-binary-arch.mk b/debian/rules.d/2-binary-arch.mk
index e622cbf16d1e..24a395d310f4 100644
--- a/debian/rules.d/2-binary-arch.mk
+++ b/debian/rules.d/2-binary-arch.mk
@@ -194,17 +194,6 @@  endif
 		INSTALL_MOD_STRIP=1 INSTALL_MOD_PATH=$(pkgdir)/ \
 		INSTALL_FW_PATH=$(pkgdir)/lib/firmware/$(abi_release)-$*
 
-	# Strip signatures from 'untrusted' staging modules.
-	# Use --strip-debug per comments in scripts/Makefile.modinst.
-	if [ -f "$(DROOT)"/signature-inclusion ] ; then \
-		find "$(pkgdir)" -path '*/drivers/staging/*.ko' | while IFS= read -r mod ; do \
-			if ! grep -qFx "$${mod##*/}" "$(DROOT)"/signature-inclusion ; then \
-				echo "UBUNTU: Strip $${mod}" ; \
-				$(CROSS_COMPILE)strip --strip-debug "$${mod}" ; \
-			fi ; \
-		done ; \
-	fi
-
 	#
 	# Build module blacklists:
 	#  - blacklist all watchdog drivers (LP:1432837)