Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1137141rwd; Thu, 15 Jun 2023 06:55:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6lwrnqX5tfZUdLG913BXy5jsdr9dVb2p2QgvnzsiM3MfS7t8qiP1V5bwM6xQMrhzBVhYGv X-Received: by 2002:a05:6a21:6811:b0:119:4e0a:b31e with SMTP id wr17-20020a056a21681100b001194e0ab31emr4349895pzb.59.1686837303536; Thu, 15 Jun 2023 06:55:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686837303; cv=none; d=google.com; s=arc-20160816; b=MbkEwhKa6gq31rF9usLJ/sZKgBHguL9JN4xXcMssFuFD+M3F9/tnCOGNrCYEEYy9AS Hg8Ldr+URHE4hInod6lxNTRvEri7p66W9L6F7F3iN53uOZ5IIsYKPnK05A1uJ+C17kCN /FFRbmx+x2hjmob+eahvutQT0u5scHHsFjsX1yLAbccFqqPx6Z0YQBCdyUv2rxqEc1RS stQ5e1AR8ft4E77K3TNGIHgGHSNuyL8q2Ei01sx92LENhWKePhjl0t6JEiwHy4iaGrTA q4pdi+p/s83H2q0t37UDxaSGkDM1g3nILeaq+Npnhl/raoB0+7ChijUgD+gyBlJI4ftb uFQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=ZrFtBLGTNpcuqLSQFfUmEj45PvA+qc7YAQvZIpEfHjU=; b=oN26055r6rVfkW4Q0+chQ+djZl1oHEOfcmWC+BKmqq643bjruzYx96wsg1EV1ChcG+ RpSkO54dfcgfWtIYYno9ag6FA5RYvh+BUhfqvXTIhD9cxLehoX3n3YnekaZmcZsuaoq5 opEoM1dBAdv04t3FlWoBVjKd0T35nvuIP5fbzkOq0m3tsqootMZ3vXOxSe7JyLofPXcN ar9FgAGKnRA9Pa2q71jeVdSFyNN2+EFFW/INo/up97gtd4HgW6fwprHhqkKAosf5M8Ls PLt0GhcMQQHUY8BTZ/0iBEPzg60/YbP0Zvx8t82O4ujzEL8T0owc32b5Fae6FEbdVBYz P32A== 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:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f16-20020a635110000000b005404f8dd0eesi12238244pgb.602.2023.06.15.06.54.51; Thu, 15 Jun 2023 06:55:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239188AbjFON1Q (ORCPT + 99 others); Thu, 15 Jun 2023 09:27:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230423AbjFON1P (ORCPT ); Thu, 15 Jun 2023 09:27:15 -0400 Received: from mail.hallyn.com (mail.hallyn.com [178.63.66.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F3E010D8; Thu, 15 Jun 2023 06:27:13 -0700 (PDT) Received: from jerom (unknown [12.133.101.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: serge) by mail.hallyn.com (Postfix) with ESMTPSA id AD7775F8; Thu, 15 Jun 2023 08:27:09 -0500 (CDT) Date: Thu, 15 Jun 2023 08:27:02 -0500 From: Serge Hallyn To: Casey Schaufler Cc: paul@paul-moore.com, linux-security-module@vger.kernel.org, jmorris@namei.org, keescook@chromium.org, john.johansen@canonical.com, penguin-kernel@i-love.sakura.ne.jp, stephen.smalley.work@gmail.com, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, mic@digikod.net Subject: Re: [PATCH v10 07/11] LSM: Helpers for attribute names and filling lsm_ctx Message-ID: References: <20230428203417.159874-1-casey@schaufler-ca.com> <20230428203417.159874-8-casey@schaufler-ca.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230428203417.159874-8-casey@schaufler-ca.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Fri, Apr 28, 2023 at 01:34:13PM -0700, Casey Schaufler wrote: > Add lsm_name_to_attr(), which translates a text string to a > LSM_ATTR value if one is available. > > Add lsm_fill_user_ctx(), which fills a struct lsm_ctx, including > the trailing attribute value. The .len value is padded to a multiple > of 64 bits for alignment. > > All are used in module specific components of LSM system calls. > > Signed-off-by: Casey Schaufler (I assume you have a patch queued up for the undefined errors?)