Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp3281839lfo; Mon, 23 May 2022 00:37:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFirgjsxWzLeR0j+FAfsX1ZIbEPefUjM+78Ls/5AqcNlw61HtOlsQRiadOKKO55RoUMAWq X-Received: by 2002:a17:903:32cc:b0:161:9539:fd49 with SMTP id i12-20020a17090332cc00b001619539fd49mr22213183plr.117.1653291441491; Mon, 23 May 2022 00:37:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653291441; cv=none; d=google.com; s=arc-20160816; b=WPxqNjxmqm2m8wvpH4imcG8RJ2HUXqtcUPiyN5b0Cb35dT0wCOB4tgsb9A7wvaLlPY eiHD3UNvTFjKO66EYPWC1br5nFqgGLJgKEBcdH3SvzsgCK/7aFxYljTcHQ39hawh0lve UNb76D3vKjkgY44/KTOnmEGZfT1X0tP28AteS2wX54aB9n+qgNSVPCkBZEpveCNHC4IB gYl7zxf3KQJHI7tLcUqIOMrmkwK2owS6RCq8SGVjhiUmEZniyN3hKlMiOJGrWJutfLdu /pdU7fqSm7mQik09QYK0mW3+2mYJMrbmhe4W4JiMlxnd6M+5LZ0eZ30N8CcqPWbytJ+Z aHYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=gteDkn0JrC0IxZy3Va+KfIOD7fTkZf3NM9/op9kVdbo=; b=VYdZKpuCe9cDxDdlSFL9b9vezb+Ly45pMudjWu0grBrG1eNgpmW7Urz/ayL9SAHCzv twAlM6N56yy6HV1hEcG4GEvohFWx76594etU+LJoHvLDgNd2CbbdFkpsVESMuf8VSxVk YiiGApqRAmMqWtTWshCpwZ2VzoGzUIHvbeY/BhkCLSm92w6Pyq+0h+zZ0j2MulleO81s 8xwEe4a7VVrysgUlJ9e39Hb163PcuN4uLZXTMOWSIBL4IEq/YVrzySqb6OhbcqPupTkD pod6ZkoVyvFnKJ7Ze/lUJNzI0GMCspUf8aRaIgF8JilqHeY3952dGZORewGSN20Y1uoV DrDw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id p7-20020a63c147000000b003db8a209973si9310886pgi.404.2022.05.23.00.37.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 00:37:21 -0700 (PDT) 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; 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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4542B1CA361; Sun, 22 May 2022 23:47:55 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234945AbiEVCfL (ORCPT + 99 others); Sat, 21 May 2022 22:35:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229650AbiEVCfJ (ORCPT ); Sat, 21 May 2022 22:35:09 -0400 Received: from mail.hallyn.com (mail.hallyn.com [178.63.66.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A63D34647; Sat, 21 May 2022 19:35:07 -0700 (PDT) Received: by mail.hallyn.com (Postfix, from userid 1001) id B17D1666; Sat, 21 May 2022 21:35:05 -0500 (CDT) Date: Sat, 21 May 2022 21:35:05 -0500 From: "Serge E. Hallyn" To: Stefan Berger Cc: linux-integrity@vger.kernel.org, zohar@linux.ibm.com, 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, jpenumak@redhat.com Subject: Re: [PATCH v12 09/26] ima: Move ima_lsm_policy_notifier into ima_namespace Message-ID: <20220522023505.GA18987@mail.hallyn.com> References: <20220420140633.753772-1-stefanb@linux.ibm.com> <20220420140633.753772-10-stefanb@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220420140633.753772-10-stefanb@linux.ibm.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, 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 Wed, Apr 20, 2022 at 10:06:16AM -0400, 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(). > > Rate-limit the kernel warning 'rule for LSM