From patchwork Tue May 9 18:25:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laura Abbott X-Patchwork-Id: 9718821 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8A7FF603F8 for ; Tue, 9 May 2017 18:25:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8163D2842A for ; Tue, 9 May 2017 18:25:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 75C8A2841C; Tue, 9 May 2017 18:25:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1F4BC2842A for ; Tue, 9 May 2017 18:25:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753731AbdEISZg (ORCPT ); Tue, 9 May 2017 14:25:36 -0400 Received: from mail-pf0-f181.google.com ([209.85.192.181]:33497 "EHLO mail-pf0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753045AbdEISZf (ORCPT ); Tue, 9 May 2017 14:25:35 -0400 Received: by mail-pf0-f181.google.com with SMTP id e193so3980274pfh.0 for ; Tue, 09 May 2017 11:25:35 -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:cc:subject:date:message-id; bh=A1XRo50Fps75HWcPtE7d3qcI5j/w7N+Bz/t5USZ5Xlo=; b=SDNhxyP4g7p7xNZ9Bux+IfoR6d5XcNtggnXG76ZvyuvLzwsueyYQioxh7cUsnpiIoK kV3a+CbuPsvCpjJmZ1IcMtjqn8jhMVxQ8Tqvy1I4V+PfoL/cuPYbf2c7F5+nCI5AvwjG W/RYiVdWmGgKaLWKegE9scdR05yq+hlWMHi11VDyMcUbiDoMklFc5H4UvuNPG2Hp7Qpi upG7X6niRZUzkZBZRnvuypD9ENcFe7X1hCG7Kj4yplXG9+qiiSzuvk39mDC1kMgWmRpf guUuV1KpX0gu5y/OjpeB7+EEhTfmiQIjw56dbeWU8J87qXN8GGkjpNuayhlucUCKSMdf 5Fcg== X-Gm-Message-State: AODbwcCiFt9OLKsIOq1yuygk9ITIGNWEVtbt3DnhF0B6IucpvuzpS0zI G60U9uTte/ufjIgi X-Received: by 10.99.171.1 with SMTP id p1mr1674568pgf.16.1494354335115; Tue, 09 May 2017 11:25:35 -0700 (PDT) Received: from X1-Carbon.hsd1.wa.comcast.net ([2601:602:9802:a8dc::7c58]) by smtp.gmail.com with ESMTPSA id 63sm1051465pfa.122.2017.05.09.11.25.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 09 May 2017 11:25:33 -0700 (PDT) From: Laura Abbott To: Mimi Zohar , Dmitry Kasatkin , James Morris , "Serge E. Hallyn" Cc: Laura Abbott , linux-ima-devel@lists.sourceforge.net, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ima: Add cgroups2 to the defaults list Date: Tue, 9 May 2017 11:25:27 -0700 Message-Id: <20170509182527.20492-1-labbott@redhat.com> X-Mailer: git-send-email 2.12.2 Sender: owner-linux-security-module@vger.kernel.org Precedence: bulk List-ID: X-Virus-Scanned: ClamAV using ClamSMTP cgroups2 is beginning to show up in wider usage. Add it to the default nomeasure/noappraise list like other filesystems. Signed-off-by: Laura Abbott --- security/integrity/ima/ima_policy.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/security/integrity/ima/ima_policy.c b/security/integrity/ima/ima_policy.c index 3ab1067db624..d60889352dda 100644 --- a/security/integrity/ima/ima_policy.c +++ b/security/integrity/ima/ima_policy.c @@ -96,6 +96,8 @@ static struct ima_rule_entry dont_measure_rules[] __ro_after_init = { {.action = DONT_MEASURE, .fsmagic = SELINUX_MAGIC, .flags = IMA_FSMAGIC}, {.action = DONT_MEASURE, .fsmagic = CGROUP_SUPER_MAGIC, .flags = IMA_FSMAGIC}, + {.action = DONT_MEASURE, .fsmagic = CGROUP2_SUPER_MAGIC, + .flags = IMA_FSMAGIC}, {.action = DONT_MEASURE, .fsmagic = NSFS_MAGIC, .flags = IMA_FSMAGIC} }; @@ -139,6 +141,7 @@ static struct ima_rule_entry default_appraise_rules[] __ro_after_init = { {.action = DONT_APPRAISE, .fsmagic = SELINUX_MAGIC, .flags = IMA_FSMAGIC}, {.action = DONT_APPRAISE, .fsmagic = NSFS_MAGIC, .flags = IMA_FSMAGIC}, {.action = DONT_APPRAISE, .fsmagic = CGROUP_SUPER_MAGIC, .flags = IMA_FSMAGIC}, + {.action = DONT_APPRAISE, .fsmagic = CGROUP2_SUPER_MAGIC, .flags = IMA_FSMAGIC}, #ifdef CONFIG_IMA_WRITE_POLICY {.action = APPRAISE, .func = POLICY_CHECK, .flags = IMA_FUNC | IMA_DIGSIG_REQUIRED},