From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7DAE3C43460 for ; Fri, 14 May 2021 19:00:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 605EC6143F for ; Fri, 14 May 2021 19:00:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233718AbhENTBv (ORCPT ); Fri, 14 May 2021 15:01:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231256AbhENTBu (ORCPT ); Fri, 14 May 2021 15:01:50 -0400 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47076C06174A for ; Fri, 14 May 2021 12:00:39 -0700 (PDT) Received: by mail-pj1-x102b.google.com with SMTP id gv8-20020a17090b11c8b029015d47d8ecbbso317931pjb.3 for ; Fri, 14 May 2021 12:00:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=UCybwO0TaczTSlpLwTibNxV8SjBVCUt+aJC9ueKaUsc=; b=bhrjbmVoLzZrE0Ye3zSI7lNoZD7nvh/L3Yqq95EI4+CnJ0Syo1J7GFnmqO+AtMBM8/ DSAbWGDASNfIDYGnB9BKkvavgGmYfk/6erDQCmQsoQ106PaAkQQ3spPJfedq3hnR/Bzy 8f0VEPWrBOduCQjJsJTse8mAMQi2RJssi2Png= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=UCybwO0TaczTSlpLwTibNxV8SjBVCUt+aJC9ueKaUsc=; b=Ttp7zz3Xz8SxJPk2AXYE05WypI+0VmjL5nMI4TN8IYZcWr9ZkHwOodeMcJp9+ARSby D5Ka1B7jYqnewDQrO1W6QfSLytRvbQ9LAhpOxu4r3MPVkBUkOculBWt6ZI5ACoxnQXzZ 42q+a3feXK9RtVDKyI5dC1cHox0Oty7jmyxjZyGJjmhJPG6oTObzjOe7UllcT5ytYeIy UTv7WJztLf6mZX++1/1JDjX5wFplzoPok05REIKvY8M7KYwJWzVZsinoLKq01nWXh9fx TS9Ze6PtrsbRDLH+kUQHYO1fvS+Jce/Ts1gHJlDDbmaNihIY1AEzlEBMyUL7LMIDU2aG K6KQ== X-Gm-Message-State: AOAM532nzfT4DRtjsIldh3ENq7G3uQah0wCsG0QuX0ycHw2i2xDIIQGF rHkKDmoykpEJmVir/Wz6JCxwWg== X-Google-Smtp-Source: ABdhPJzwydOqrNEs8BGiriz1WpXA2XMtZmviya9EPj7XrWMKzuXa+83JaN7GU/Lf5l1HjO2uimqTAA== X-Received: by 2002:a17:90a:b38c:: with SMTP id e12mr4308880pjr.134.1621018838886; Fri, 14 May 2021 12:00:38 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id h4sm10577030pjc.12.2021.05.14.12.00.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 May 2021 12:00:38 -0700 (PDT) Date: Fri, 14 May 2021 12:00:37 -0700 From: Kees Cook To: Casey Schaufler Cc: casey.schaufler@intel.com, jmorris@namei.org, linux-security-module@vger.kernel.org, selinux@vger.kernel.org, linux-audit@redhat.com, john.johansen@canonical.com, penguin-kernel@i-love.sakura.ne.jp, paul@paul-moore.com, sds@tycho.nsa.gov, linux-kernel@vger.kernel.org Subject: Re: [PATCH v26 03/25] LSM: provide lsm name and id slot mappings Message-ID: <202105141200.F0001143A@keescook> References: <20210513200807.15910-1-casey@schaufler-ca.com> <20210513200807.15910-4-casey@schaufler-ca.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210513200807.15910-4-casey@schaufler-ca.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 13, 2021 at 01:07:45PM -0700, Casey Schaufler wrote: > Provide interfaces to map LSM slot numbers and LSM names. > Update the LSM registration code to save this information. > > Signed-off-by: Casey Schaufler Seems a reasonable set of utilities. :) Reviewed-by: Kees Cook -- Kees Cook From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A4D24C433B4 for ; Fri, 14 May 2021 19:00:57 +0000 (UTC) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2D135613E9 for ; Fri, 14 May 2021 19:00:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2D135613E9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=tempfail smtp.mailfrom=linux-audit-bounces@redhat.com Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-6-xBD5GVzxODiHifEk7tp0BA-1; Fri, 14 May 2021 15:00:54 -0400 X-MC-Unique: xBD5GVzxODiHifEk7tp0BA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 30F5E801B12; Fri, 14 May 2021 19:00:51 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3336410027C4; Fri, 14 May 2021 19:00:50 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id CC4075534F; Fri, 14 May 2021 19:00:47 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 14EJ0jwa005448 for ; Fri, 14 May 2021 15:00:45 -0400 Received: by smtp.corp.redhat.com (Postfix) id 29F3A118DF4A; Fri, 14 May 2021 19:00:45 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast05.extmail.prod.ext.rdu2.redhat.com [10.11.55.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 25B5F11A3312 for ; Fri, 14 May 2021 19:00:42 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 2473D833942 for ; Fri, 14 May 2021 19:00:42 +0000 (UTC) Received: from mail-pj1-f49.google.com (mail-pj1-f49.google.com [209.85.216.49]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-108-F3rPRxqMMhqxcMq-pif7cQ-1; Fri, 14 May 2021 15:00:39 -0400 X-MC-Unique: F3rPRxqMMhqxcMq-pif7cQ-1 Received: by mail-pj1-f49.google.com with SMTP id gb21-20020a17090b0615b029015d1a863a91so2130049pjb.2 for ; Fri, 14 May 2021 12:00:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=UCybwO0TaczTSlpLwTibNxV8SjBVCUt+aJC9ueKaUsc=; b=QqmMURyEweFFQhpw6nnWwBBlaXfxIiuSq+Z2o9ozGfeCPDnd1UpH4m2+TyQ03ot3Pu Gd3M77EqqHJS9+ZftJ2FXhEBZcQP6k6ZUIBgI47+Q+8yWI08WAyOppXDumlfxMHX/W5Q LPCwGiznFPcAEI5lwa9NfCopKZIvzq/13wZEWYm4vTBy2NDCE/4gj83jbWRv/ORMDSJR R07vKVU04JSjyicTPyNDULDqdActpiLjpiXj5cuVUf/qECQHdXvMkRuVcFia52sWdXCX ulsMnUOOCd1D3auqiuD38oIavbgzAiDcosikUAt/eUxnT/A6hfdBqVQM/kLkOKA64oxE xPZw== X-Gm-Message-State: AOAM530A3Eu9y3x6+siddQBnqZUdOAO/lprb9q46irjgDGTzgwzcg/Gu gm712PgTvKwHjDixV8YtZzPt4A== X-Google-Smtp-Source: ABdhPJzwydOqrNEs8BGiriz1WpXA2XMtZmviya9EPj7XrWMKzuXa+83JaN7GU/Lf5l1HjO2uimqTAA== X-Received: by 2002:a17:90a:b38c:: with SMTP id e12mr4308880pjr.134.1621018838886; Fri, 14 May 2021 12:00:38 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id h4sm10577030pjc.12.2021.05.14.12.00.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 May 2021 12:00:38 -0700 (PDT) Date: Fri, 14 May 2021 12:00:37 -0700 From: Kees Cook To: Casey Schaufler Subject: Re: [PATCH v26 03/25] LSM: provide lsm name and id slot mappings Message-ID: <202105141200.F0001143A@keescook> References: <20210513200807.15910-1-casey@schaufler-ca.com> <20210513200807.15910-4-casey@schaufler-ca.com> MIME-Version: 1.0 In-Reply-To: <20210513200807.15910-4-casey@schaufler-ca.com> X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-loop: linux-audit@redhat.com Cc: john.johansen@canonical.com, selinux@vger.kernel.org, jmorris@namei.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, linux-audit@redhat.com, casey.schaufler@intel.com, sds@tycho.nsa.gov X-BeenThere: linux-audit@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Linux Audit Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=linux-audit-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Thu, May 13, 2021 at 01:07:45PM -0700, Casey Schaufler wrote: > Provide interfaces to map LSM slot numbers and LSM names. > Update the LSM registration code to save this information. > > Signed-off-by: Casey Schaufler Seems a reasonable set of utilities. :) Reviewed-by: Kees Cook -- Kees Cook -- Linux-audit mailing list Linux-audit@redhat.com https://listman.redhat.com/mailman/listinfo/linux-audit