Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp791219pxb; Thu, 17 Feb 2022 15:03:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJxwASMyD1AwK0F2jxGbPUG4deblx7nseDF6i9NaDbi125TprJGZda/Ypp+CJc7N/zrNUOXD X-Received: by 2002:a05:6a00:a8b:b0:4e1:52db:9e5c with SMTP id b11-20020a056a000a8b00b004e152db9e5cmr4971010pfl.38.1645138996035; Thu, 17 Feb 2022 15:03:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645138996; cv=none; d=google.com; s=arc-20160816; b=w0Iq0uuYMX4o93PoiHnzEb4lrAKuU14NG7stnwPYWasqXQx2p7kh2xK2yJUCkxVwW/ jUfYeYVY9mSV7q16YPl+pW44EUGlaAEPotZr+vIOGD9LCaq6un9GPDMEzT9Z14I0YFha 8604DqbM4Qjq+7PPaj8GP7zjQ/qG0jkmfMts401GhL7/IPnJDKmjqO3TkKGWWJ2vt6RQ yXgce5OC904wlnodkQ5legVBhJKMiFK9LIA3rRIwSsL4ciDV8e92B6Fgt6vt9zpAtvm2 RgU/mExyhDmmuHL5xTwdRmSayT9vDahl2UT20u0xVg1v02S1YKkGFx+se584BHsOcZb1 +wPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=npCr+mrD9HJvtwLKXKJmkTr7GrGwwCxh7Azvlo6Ghbw=; b=Xy+GQHsO1TzJaqUpswHxGjUkmCI7Yjdir1uaWRPvIh7oMeasDutH/4FSrSHLnfA99F nebBlGe9xzfusX+/POqGole8eYkGoaskZ5I9nrqcoZPLB2tv/Yz8p1TFDYFfMByHA31H A8+Nfnf9QeGFYFJ6bjbGkQY3CO+AJdfuJEolxs1OtQuCEnkClI9EFT1JamqN1Pa8yUGe i1bS5y0G3Ahe95gicdU0VCSUrB0d/valDFKIYartVVy69/+2JP2CxKkOkZgDrVmIZmpV bpWN3ffFjTeBx/mNIEbcqzXDOqhM5eWDpr1VyPymsBDsIu9hCdEHAxLRbbYAZXrTy087 bnsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=sLkVXxUt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id b24si8847382plz.367.2022.02.17.15.03.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Feb 2022 15:03:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=sLkVXxUt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E98D627B987; Thu, 17 Feb 2022 14:58:54 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244749AbiBQVY7 (ORCPT + 99 others); Thu, 17 Feb 2022 16:24:59 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:59442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242293AbiBQVY6 (ORCPT ); Thu, 17 Feb 2022 16:24:58 -0500 Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 223A780227; Thu, 17 Feb 2022 13:24:43 -0800 (PST) Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 21HLCHZ5012705; Thu, 17 Feb 2022 21:24:30 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : subject : from : to : cc : date : in-reply-to : references : content-type : mime-version : content-transfer-encoding; s=pp1; bh=npCr+mrD9HJvtwLKXKJmkTr7GrGwwCxh7Azvlo6Ghbw=; b=sLkVXxUtFpszMcPMBVyy7J8WbYBid1euE6Pyr+UCQN7FfdMQdU6culcvtwQeyVKyryIK ST6yKmq0H+USX5YnARQIIflS9E7afgxZ4neYyVqb//WgNz9trPbTOts4OY+bp5rW97BD Ju2gTXizOsNiIidS162tiueyVsNzt+bkvngydTLFX/hX3LUrAL+IRnuheRZwvlayEutQ 69IOsZPJ8DKOR2EFygf2t9KtapRdBFaeWwl271E54B3F5KdcczbeU3ArZx/uq6Zj5sU+ /KSCwP64N9HJcLE/uFdFHuEU3LtrPtcAuvTJb2ddI6uPRxZadlMIaS3KEMRYXRK/Gh38 Vg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 3e9uxjbssf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 17 Feb 2022 21:24:30 +0000 Received: from m0098419.ppops.net (m0098419.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 21HLD72A031021; Thu, 17 Feb 2022 21:24:29 GMT Received: from ppma04ams.nl.ibm.com (63.31.33a9.ip4.static.sl-reverse.com [169.51.49.99]) by mx0b-001b2d01.pphosted.com with ESMTP id 3e9uxjbss6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 17 Feb 2022 21:24:29 +0000 Received: from pps.filterd (ppma04ams.nl.ibm.com [127.0.0.1]) by ppma04ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 21HLBcl3028269; Thu, 17 Feb 2022 21:24:27 GMT Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by ppma04ams.nl.ibm.com with ESMTP id 3e64hansbs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 17 Feb 2022 21:24:27 +0000 Received: from d06av24.portsmouth.uk.ibm.com (mk.ibm.com [9.149.105.60]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 21HLOOWW42664344 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 17 Feb 2022 21:24:24 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 27D3C42041; Thu, 17 Feb 2022 21:24:24 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A16C542047; Thu, 17 Feb 2022 21:24:21 +0000 (GMT) Received: from sig-9-65-72-122.ibm.com (unknown [9.65.72.122]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 17 Feb 2022 21:24:21 +0000 (GMT) Message-ID: <70f47a79438d6962fb5b633e1f2756763bcc6507.camel@linux.ibm.com> Subject: Re: [PATCH v10 11/27] ima: Move ima_lsm_policy_notifier into ima_namespace From: Mimi Zohar To: Stefan Berger , linux-integrity@vger.kernel.org Cc: serge@hallyn.com, christian.brauner@ubuntu.com, containers@lists.linux.dev, dmitry.kasatkin@gmail.com, ebiederm@xmission.com, krzysztof.struczynski@huawei.com, roberto.sassu@huawei.com, mpeters@redhat.com, lhinds@redhat.com, lsturman@redhat.com, puiterwi@redhat.com, jejb@linux.ibm.com, jamjoom@us.ibm.com, linux-kernel@vger.kernel.org, paul@paul-moore.com, rgb@redhat.com, linux-security-module@vger.kernel.org, jmorris@namei.org Date: Thu, 17 Feb 2022 16:24:18 -0500 In-Reply-To: <95a9eb64-654b-8d34-12c7-1dd7666e3420@linux.ibm.com> References: <20220201203735.164593-1-stefanb@linux.ibm.com> <20220201203735.164593-12-stefanb@linux.ibm.com> <62f946ec160296b6b20bee98986b2bafb8427718.camel@linux.ibm.com> <95a9eb64-654b-8d34-12c7-1dd7666e3420@linux.ibm.com> Content-Type: text/plain; charset="ISO-8859-15" X-Mailer: Evolution 3.28.5 (3.28.5-18.el8) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: UJLg04jMq_UTBAj1uRstpK6koVGE4Uls X-Proofpoint-ORIG-GUID: 73VuLoOrFe-toDW-umdrcgsbBvRzr8yB X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-02-17_08,2022-02-17_01,2021-12-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 mlxscore=0 suspectscore=0 phishscore=0 malwarescore=0 bulkscore=0 lowpriorityscore=0 clxscore=1015 spamscore=0 adultscore=0 priorityscore=1501 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2202170100 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2022-02-17 at 15:59 -0500, Stefan Berger wrote: > > > >> Move the ima_lsm_policy_notifier into the ima_namespace. Each IMA > >> namespace can now register its own LSM policy change notifier callback. > >> The policy change notifier for the init_ima_ns still remains in init_ima() > >> and therefore handle the registration of the callback for all other > >> namespaces in init_ima_namespace(). > >> > >> Suppress the kernel warning 'rule for LSM