Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1553105rwi; Wed, 26 Oct 2022 17:29:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6CF+KGW5dabWpbUHCYlyYuGjA2ZDY/6YFsVcl8hae+p86+HjelLCjEFT5Gat224z1NQFBB X-Received: by 2002:a17:902:e886:b0:186:6eea:cd35 with SMTP id w6-20020a170902e88600b001866eeacd35mr34462032plg.116.1666830567048; Wed, 26 Oct 2022 17:29:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666830567; cv=none; d=google.com; s=arc-20160816; b=fUGINSr1WUYeCQUYvJPkd6Q400F51Bzp2sI/qDWd8RGapTVdRdwhhx2pp2wIZefZqD xJvfXvYf9cPso7p3+Gi2PP/zvilPRB2pQQ6aInel0ami1cCCfuKr8sgScdrTduTNKQVG 6qzr3cB01MngmqMlknELDG35mDQuXOqLzTfoVFex52WdR1e3eNw+6VEg+d+xeiys5Fm/ mxtATy9wGbTtttpHInL4aunf+olSoFnkSg41qSQP0K0cpUozo0MN2iJrW+j02YCisglj X4gLMTwfXSq5x8lyOtpdFTdEahuOCuB58Je59plbeGBwu9EdbFeEs1R1WCMKHtvua6AE kjNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=GNNi8DGfxM5Q+debF5PCjwvVrCV0LDbdv4HaEdqdsxU=; b=j7D1aHsi9jCF6CfWOrJItZzJvV16YyCZkZ2UCyOhwg4KRWbgAJ8NS85mzPCr9QhdJH CrthG3MtUbKrTmFF2Hdd+25W/TrH/bBrQH06GsY/LFlD/dPxGgBX0MbN4qbu0NAVWb4M rAg3mzZ5ddl+8zGRSEX8e+9cooW+96ITKdmPbF9XSkSbX7+HNpflyPE+0YcvIu1E4JJ+ wGP7EC+quuetrcaojHmpAuoehtHNhrRwDMNGaGKrqYwzpLQYuxhhYtIQmEWnndfNFA7O zlQE19AeRkOn7/pkFZa0Hq6QwXrIstw2qw52V4jmsHiAeTh8nmIUx+52e6yOEFEgKFKC TE1w== 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 f5-20020a63dc45000000b00458369c78c9si8863169pgj.179.2022.10.26.17.29.15; Wed, 26 Oct 2022 17:29:27 -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 S233473AbiJ0ALp (ORCPT + 99 others); Wed, 26 Oct 2022 20:11:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229602AbiJ0ALo (ORCPT ); Wed, 26 Oct 2022 20:11:44 -0400 Received: from www262.sakura.ne.jp (www262.sakura.ne.jp [202.181.97.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C1647AC0C; Wed, 26 Oct 2022 17:11:43 -0700 (PDT) Received: from fsav315.sakura.ne.jp (fsav315.sakura.ne.jp [153.120.85.146]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id 29R0B4Vd005152; Thu, 27 Oct 2022 09:11:04 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav315.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav315.sakura.ne.jp); Thu, 27 Oct 2022 09:11:04 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav315.sakura.ne.jp) Received: from [192.168.1.9] (M106072142033.v4.enabler.ne.jp [106.72.142.33]) (authenticated bits=0) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id 29R0B31K005147 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NO); Thu, 27 Oct 2022 09:11:03 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Message-ID: Date: Thu, 27 Oct 2022 09:11:03 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 Subject: Re: [PATCH v1 2/8] LSM: Add an LSM identifier for external use Content-Language: en-US To: Casey Schaufler , Greg KH Cc: casey.schaufler@intel.com, paul@paul-moore.com, linux-security-module@vger.kernel.org, jmorris@namei.org, keescook@chromium.org, john.johansen@canonical.com, stephen.smalley.work@gmail.com, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, mic@digikod.net References: <20221025184519.13231-1-casey@schaufler-ca.com> <20221025184519.13231-3-casey@schaufler-ca.com> <5396ab1e-9b93-df33-ca49-58dc59459a76@schaufler-ca.com> From: Tetsuo Handa In-Reply-To: <5396ab1e-9b93-df33-ca49-58dc59459a76@schaufler-ca.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 >>> + */ >>> + >>> +#ifndef _UAPI_LINUX_LSM_H >>> +#define _UAPI_LINUX_LSM_H >>> + >>> +/* >>> + * ID values to identify security modules. >>> + * A system may use more than one security module. >>> + * >>> + * LSM_ID_XXX values 0 - 31 are reserved for future use >> Reserved for what? Why? > > You're not the first person to ask. I'll remove the reserved values > for the next version. The invalid value has to change as the id field > is going to be unsigned. Don't define a user-visible static integer for LSM module. We can continue using names or dynamically assigned integer. https://lkml.kernel.org/r/a0567b10-fa83-50f4-7bf6-937e0c677e60@I-love.SAKURA.ne.jp Nacked-by: Tetsuo Handa