Message ID | 20200619165010.645925-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 49pPxG4wjMzB4CV; Sat, 20 Jun 2020 02:52:34 +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 1jmKFh-0008OL-NZ; Fri, 19 Jun 2020 16:52:29 +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 1jmKEP-0007Lg-AP for kernel-team@lists.ubuntu.com; Fri, 19 Jun 2020 16:51:09 +0000 Received: from mail-il1-f199.google.com ([209.85.166.199]) 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 1jmKEN-0006Px-K9 for kernel-team@lists.ubuntu.com; Fri, 19 Jun 2020 16:51:07 +0000 Received: by mail-il1-f199.google.com with SMTP id n2so6891245ilq.4 for <kernel-team@lists.ubuntu.com>; Fri, 19 Jun 2020 09:51:07 -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=IxEdaBilL6SLQ7gF3WHFKKGJyRf3aZAd6wq8qnJwTF8WF4qK0Mvj1IlXdkS7UKPL8W jShRxYOPRPf00++cadIRkms3nHpDJpBQBnQhincZ94tjKeJXwCXRjPGpmV4WvxbFEOQL NP6HOAv4RBBgodcgv/Zfy+OlAJr6Dnx3OZwPNeCNuVL0xLBsq/Z8su259Nso/5f+nO/3 4h35GQakc5vrdlNFfxkyZosd1Vln0/a/shrlnDbQlswwlWQ/clYZgqAoV1ePiwk/PtlO 95XpLMFOqwifQA6R7hEfKUBjyxETJrO9v5ax1tGKpHO/YTTJXyZb8hTvaw9gQ9l6izkK Sb3Q== X-Gm-Message-State: AOAM531MtDpat/VGJ7ARTWNQObNt5gdkSYTOQ7dzhogc/7dU137AHABW bVDEWAfLvsYemBo5mmW3keGwPb3oi3BnY1YMGSIP3sOTbHQxDNLvZlqNfq2p7Snp2GS1m7loowB 6w3VqpGdUO5SB/579JyRYPjXvLHdBhSmRRHdaOn+ccg== X-Received: by 2002:a92:ab04:: with SMTP id v4mr4398300ilh.186.1592585466472; Fri, 19 Jun 2020 09:51:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzP+xHZEXcxe1Xn9NuoAEn/YokwUF7Vy34MG23SmgHhTiGzGoc6/Aj/90UvmO+8qxGTiVjhvw== X-Received: by 2002:a92:ab04:: with SMTP id v4mr4398277ilh.186.1592585466137; Fri, 19 Jun 2020 09:51:06 -0700 (PDT) Received: from localhost ([2605:a601:ac0f:820:f090:1573:c2fc:6389]) by smtp.gmail.com with ESMTPSA id x15sm3218120ilj.78.2020.06.19.09.51.05 for <kernel-team@lists.ubuntu.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jun 2020 09:51:05 -0700 (PDT) From: Seth Forshee <seth.forshee@canonical.com> To: kernel-team@lists.ubuntu.com Subject: [PATCH v2 44/57][X] UBUNTU: SAUCE: (efi-lockdown) Prohibit PCMCIA CIS storage when the kernel is locked down Date: Fri, 19 Jun 2020 11:49:57 -0500 Message-Id: <20200619165010.645925-45-seth.forshee@canonical.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200619165010.645925-1-seth.forshee@canonical.com> References: <20200619165010.645925-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)