From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752667AbdEITnT (ORCPT ); Tue, 9 May 2017 15:43:19 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:58049 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751242AbdEITnR (ORCPT ); Tue, 9 May 2017 15:43:17 -0400 Subject: Re: [PATCH] ima: Add cgroups2 to the defaults list From: Mimi Zohar To: Laura Abbott , Dmitry Kasatkin , James Morris , "Serge E. Hallyn" Cc: linux-ima-devel@lists.sourceforge.net, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 09 May 2017 15:42:07 -0400 In-Reply-To: <20170509182527.20492-1-labbott@redhat.com> References: <20170509182527.20492-1-labbott@redhat.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.20.5 (3.20.5-1.fc24) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable x-cbid: 17050919-0052-0000-0000-0000023CC744 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17050919-0053-0000-0000-00000818D5F9 Message-Id: <1494358927.3190.11.camel@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-05-09_15:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=3 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1703280000 definitions=main-1705090110 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2017-05-09 at 11:25 -0700, Laura Abbott wrote: > 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 Thanks, queued for next. Mimi > --- > 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},