From patchwork Thu Nov 28 14:27:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kleber Sacilotto de Souza X-Patchwork-Id: 1202085 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47P0NP3qLkz9sPL; Fri, 29 Nov 2019 01:27:49 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1iaKlm-0002R5-58; Thu, 28 Nov 2019 14:27:46 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1iaKlj-0002Qp-VK for kernel-team@lists.ubuntu.com; Thu, 28 Nov 2019 14:27:43 +0000 Received: from mail-ed1-f72.google.com ([209.85.208.72]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1iaKlj-0001Ne-Qa for kernel-team@lists.ubuntu.com; Thu, 28 Nov 2019 14:27:43 +0000 Received: by mail-ed1-f72.google.com with SMTP id c11so15641640edv.23 for ; Thu, 28 Nov 2019 06:27:43 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=Bjff3eGrQP23Y3h11SsfU5ZV0Hx/ftPSGvlBklZCwyQ=; b=Fff3vbSXUlKzdgdg433Kug+v46qor9zN9vx5GSvn5JA9A8vbuerbZMms4dYpEUXdCr r62lY9nWVmGlFR4s+p5LV7eaJsZa5rbpBaJAkTa+VbEhbz6gTDUpDLyKShCfwkfyiQlb zlVsgrmMooKU/Hmbyttph/pMaV/e7s4E2ghtR6LLZfdZn9Ay03I9B9lEp/qd2ooAZiW9 mZ9eaDAH/olGqPe0mdoa/jEQR4XiRNSCTi65vFKWgBWI/WOIhEJwRUTzHqPUXv2Dd9oy 3yn6H4mKPDKetBOozLKfGwqQOxusIx6fj2mgbjHrHgoRLoy9DtZMt+1E4g4jYYKSgXdP jgqQ== X-Gm-Message-State: APjAAAXx7cfy3K6LcmEOEZ9MMdasw73qufHl9MKr5H2Z7jImU5/Q1ey8 +QyJNiQu+2L8e8KkFpz6BOxCBOWr/9VpJtlJPgiqUutFxQx3pm3SsR/YYLpD1sbD+sgbFJS3S5k TaF7QNYnJKgkn5lcNyZwtkRUAIm1nGjjdSQDVXlMv7g== X-Received: by 2002:a05:6402:1850:: with SMTP id v16mr38392403edy.301.1574951263327; Thu, 28 Nov 2019 06:27:43 -0800 (PST) X-Google-Smtp-Source: APXvYqw6qsBN8u0YSYq4sxqze8tZuVGo72Gwgo9hD2TeLUMRuKt7JSz5vHc/NyT2hrA/AUjBiGrdhw== X-Received: by 2002:a05:6402:1850:: with SMTP id v16mr38392381edy.301.1574951263074; Thu, 28 Nov 2019 06:27:43 -0800 (PST) Received: from localhost ([185.199.104.14]) by smtp.gmail.com with ESMTPSA id i7sm793891edr.28.2019.11.28.06.27.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Nov 2019 06:27:42 -0800 (PST) From: Kleber Sacilotto de Souza To: kernel-team@lists.ubuntu.com Subject: [SRU][B/linux-signed-hwe][PATCH] UBUNTU: fix vmlinuz-* permissions for opal signed kernels Date: Thu, 28 Nov 2019 15:27:42 +0100 Message-Id: <20191128142742.3559-1-kleber.souza@canonical.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: Seth Forshee BugLink: https://bugs.launchpad.net/bugs/1843327 We're currently changing the permissions on the signature file instead of the concatenated kernel+signature file which will be installed. Fix this. Signed-off-by: Seth Forshee Signed-off-by: Thadeu Lima de Souza Cascardo Signed-off-by: Kleber Sacilotto de Souza Acked-by: Thadeu Lima de Souza Cascardo Acked-by: Thadeu Lima de Souza Cascardo Acked-by: Khalid Elmously --- Notes: This bug was already fixed for Bionic and Disco, however this wasn't fixed for bionic/linux-signed-hwe. debian/rules | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/debian/rules b/debian/rules index d8d99f8..bd5b948 100755 --- a/debian/rules +++ b/debian/rules @@ -59,10 +59,10 @@ override_dh_auto_build: done; \ for s in *.opal.sig; do \ [ ! -f "$$s" ] && continue; \ - chmod 600 "$$s"; \ base=$$(echo "$$s" | sed -e 's/.opal.sig//'); \ - cat "$$base.opal" "$$s" >"../SIGNED/$$base";\ - done \ + cat "$$base.opal" "$$s" >"../SIGNED/$$base"; \ + chmod 600 "../SIGNED/$$base"; \ + done; \ ) override_dh_auto_install: