Message ID | 20200619161621.644540-45-seth.forshee@canonical.com |
---|---|
State | New |
Headers | show
Return-Path: <kernel-team-bounces@lists.ubuntu.com> 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=<UNKNOWN>) 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 49pPBL41LszB3t1; Sat, 20 Jun 2020 02:18:50 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from <kernel-team-bounces@lists.ubuntu.com>) id 1jmJj3-0003wW-6D; Fri, 19 Jun 2020 16:18:45 +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 <seth.forshee@canonical.com>) id 1jmJhh-0002nz-EB for kernel-team@lists.ubuntu.com; Fri, 19 Jun 2020 16:17:21 +0000 Received: from mail-io1-f70.google.com ([209.85.166.70]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from <seth.forshee@canonical.com>) id 1jmJhf-0003jK-FN for kernel-team@lists.ubuntu.com; Fri, 19 Jun 2020 16:17:19 +0000 Received: by mail-io1-f70.google.com with SMTP id a16so7173171iow.9 for <kernel-team@lists.ubuntu.com>; Fri, 19 Jun 2020 09:17:19 -0700 (PDT) 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=vRdXymHRKOI3kRnkEBUTBToBzMkSk23R3C8M32JJSys=; b=QLHz32RLZ7pXa5agSUQELuWGbkvcFGSmOH70ZQZDnme8Tz+wC8dUyJVVYHUq2nzpD+ I7M3k/QHA73/EqYfHVh0027pC4cvSoWElLVZUnLX0yu47uB0n0FudJSs2Ri5Iw6tO6dO xUIFa4guxloTIzQcGfRlTw0KahogarWRRUmuLqa/DkLb7/1LUVOU5b9ObV9+/ngxmNve Fv3WIqUYT9TSydS6m6suc9xcmmh4/ZLO0tYM2hPPIgndKN0/6YW7yvbGeQMUpUCuRxI/ OH08DQNYKHJlmM5cNv4avaU+FuFMslKIMZ+i3KiVoczd3k5ydzMqnoL0x9eDpzgu3NhO 6Nnw== X-Gm-Message-State: AOAM532mRUmvaKV3HyuvfxnGT0JWRdj+jSj3pGgapcfjHeWa8/51p8hA ckeTfDY6FRXzdzfoP7ZDc6dKrPbkdE4HjG0euOoPI4P8+pHMrDGq7C8YfpJC8PXxqbI7T3CsbbT pHJrNJcgrewgAPFsFakeJTy2NjN3Xk5K7iSTkYuuT0A== X-Received: by 2002:a92:cb4c:: with SMTP id f12mr4368389ilq.235.1592583438368; Fri, 19 Jun 2020 09:17:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVdeq69vyprBaTvydhB5emvo3SmTu0am7Zepkscy1wno2GrUpkcDhZDjQM0Se7hMDEWKFaMw== X-Received: by 2002:a92:cb4c:: with SMTP id f12mr4368337ilq.235.1592583437669; Fri, 19 Jun 2020 09:17:17 -0700 (PDT) Received: from localhost ([2605:a601:ac0f:820:f090:1573:c2fc:6389]) by smtp.gmail.com with ESMTPSA id q5sm3374458ile.37.2020.06.19.09.17.16 for <kernel-team@lists.ubuntu.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jun 2020 09:17:17 -0700 (PDT) From: Seth Forshee <seth.forshee@canonical.com> To: kernel-team@lists.ubuntu.com Subject: [PATCH v2 44/57][B] UBUNTU: SAUCE: (efi-lockdown) Prohibit PCMCIA CIS storage when the kernel is locked down Date: Fri, 19 Jun 2020 11:16:08 -0500 Message-Id: <20200619161621.644540-45-seth.forshee@canonical.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200619161621.644540-1-seth.forshee@canonical.com> References: <20200619161621.644540-1-seth.forshee@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions <kernel-team.lists.ubuntu.com> List-Unsubscribe: <https://lists.ubuntu.com/mailman/options/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=unsubscribe> List-Archive: <https://lists.ubuntu.com/archives/kernel-team> List-Post: <mailto:kernel-team@lists.ubuntu.com> List-Help: <mailto:kernel-team-request@lists.ubuntu.com?subject=help> List-Subscribe: <https://lists.ubuntu.com/mailman/listinfo/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" <kernel-team-bounces@lists.ubuntu.com> |
Series |
Lockdown updates
|
expand
|
diff --git a/drivers/pcmcia/cistpl.c b/drivers/pcmcia/cistpl.c index 55ef7d1fd8da..4ea05a5ec4b2 100644 --- a/drivers/pcmcia/cistpl.c +++ b/drivers/pcmcia/cistpl.c @@ -1578,6 +1578,9 @@ static ssize_t pccard_store_cis(struct file *filp, struct kobject *kobj, struct pcmcia_socket *s; int error; + if (secure_modules()) + return -EPERM; + s = to_socket(container_of(kobj, struct device, kobj)); if (off)