Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp599638rdh; Sun, 24 Sep 2023 04:06:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG3N2F0kztresif9TGgcbizgg2AfGChzRru7dSgC8ryygp9FB9ZXjueJiJ9/GN1yYZlWelG X-Received: by 2002:a05:6a00:80a:b0:68a:582b:6b62 with SMTP id m10-20020a056a00080a00b0068a582b6b62mr5562289pfk.7.1695553619669; Sun, 24 Sep 2023 04:06:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695553619; cv=none; d=google.com; s=arc-20160816; b=qrFmrPObZRc8sNskNXeA9g6uTc8WgqUtdxNeHYYhn27DtTjcPfizeD2kvSF9MVzbIT xSdLff0BSUX+TvgBRptgwOp91BmOegcoRcyYkzcgCO9DBGmiuLcg0eCT20VxSvH6N2+T ObmpCcH2N/yjHcINZ7l8tTzVH3g03EQKpregm5oJl83l0anYuCxr/IGxfi2VpquqhX02 v0Pe6FdM5AfPVpYQbS6ou2tBWnP4Zi5wzpPRzo+YkaMiceelbDSJPyk0in/c1AofNrR4 YtGdyT1SZeaIAP9jPJxRrxOWNKq7d8UIxPg3SA6UKsZ+JW0XEXBKODix0hROCWSW8Ob7 VMqQ== 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=TEHVonREnQ8ejL8EnWaKZlTpqfRy/fF8bx1SeRxnoJQ=; fh=9Q4CjLiqk3KMK7rf1gffP/0uvl2E6e4H8gBc+Y7JtIQ=; b=RDVy46KXw910KtqTooS59lxpla+OEO29bjVkT4pjzdsjAslxZUdwmdGJw8cu4IvIPt 8RSu3OjUh5SZKuwpYph3gEOUMpvzu56weP9lYnzJvPoOrsWWyHa0QsAaen5CuyuKuPIT Wa+Q47Dvq+qtQoXQKIglYUNYtDnRlsllIIaa4Xzk9WsH+Te8CnqWXIPOSOAooy3x+23Z INtZmcrSwq5WepfAUt6md170lMd9l04WArGI59vBxlBgBq6pL1yvdYC5vliYM1oG4C2c A9migG/R4Lc4mLRMtL5PfZi7qT1N4zE0EEOad+WrS3Qbyfh2V6LbyQs4uA7/f+m+7pI9 QhpQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id eg23-20020a056a00801700b0068fa57d2486si7677697pfb.125.2023.09.24.04.06.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Sep 2023 04:06:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 072F1801D5AE; Sun, 24 Sep 2023 04:06:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229832AbjIXLG6 (ORCPT + 99 others); Sun, 24 Sep 2023 07:06:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbjIXLG5 (ORCPT ); Sun, 24 Sep 2023 07:06:57 -0400 Received: from www262.sakura.ne.jp (www262.sakura.ne.jp [202.181.97.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5EB4101; Sun, 24 Sep 2023 04:06:50 -0700 (PDT) Received: from fsav414.sakura.ne.jp (fsav414.sakura.ne.jp [133.242.250.113]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id 38OB68Tn010884; Sun, 24 Sep 2023 20:06:08 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav414.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav414.sakura.ne.jp); Sun, 24 Sep 2023 20:06:08 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav414.sakura.ne.jp) Received: from [192.168.1.6] (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 38OB68R7010880 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NO); Sun, 24 Sep 2023 20:06:08 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Message-ID: Date: Sun, 24 Sep 2023 20:06:07 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH v15 01/11] LSM: Identify modules by more than name Content-Language: en-US To: Kees Cook Cc: Casey Schaufler , paul@paul-moore.com, linux-security-module@vger.kernel.org, jmorris@namei.org, serge@hallyn.com, john.johansen@canonical.com, stephen.smalley.work@gmail.com, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, mic@digikod.net, Dave Chinner , Linus Torvalds , Jonathan Corbet References: <20230912205658.3432-1-casey@schaufler-ca.com> <20230912205658.3432-2-casey@schaufler-ca.com> <1f5e725d-58b6-eca2-97dc-d7c1209ff167@I-love.SAKURA.ne.jp> <568c0730-b458-04b4-dbfa-77da1758aa05@schaufler-ca.com> <94743c22-bc76-e741-e577-3e0845423f69@I-love.SAKURA.ne.jp> <6df9f8b8-5653-09a5-ae0a-6526016abaff@schaufler-ca.com> <202309200803.1911A584@keescook> <202309231838.CB16E6B5@keescook> From: Tetsuo Handa In-Reply-To: <202309231838.CB16E6B5@keescook> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Sun, 24 Sep 2023 04:06:57 -0700 (PDT) Patch description says The LSM ID values are sequential, with the oldest module LSM_ID_CAPABILITY being the lowest value and the existing modules numbered in the order they were included in the main line kernel. This is an arbitrary convention for assigning the values, but none better presents itself. The value 0 is defined as being invalid. and your non-sequential assignment > But lsm_id::id is a u64 (not an enum!), so there is a HUGE space available. violated it. include/uapi/linux/lsm.h is a userspace API file, where we can't change this value after once defined. You withdraw your "Reviewed-by" response unless "The LSM ID values are sequential" and "must be approved by the LSM maintainers" are removed and "the LSM maintainers/community shall never complain about what names and/or values are assigned" is added, don't you? Quoting from https://lkml.kernel.org/r/4a6b6e2c-9872-4d4c-e42e-4ff0fb79f3ae@I-love.SAKURA.ne.jp : You are intentionally making life difficult for the out-of-tree LSMs, by requiring an LSM ID (and facilitating LSM ID collisions). No matter how priority of out-of-tree LSMs is low for you, what you are about to merge goes against the "developers try to avoid identifier collisions" effort. Introducing a numeric identifier is a good opportunity for permanently eliminating possibility of identifier collisions. But current usage of this numeric identifier is designed for facilitating possibility of identifier collisions. Keeping how the HUGE space is used under control of the LSM community will be better for both in-tree and out-of-tree LSM modules. I really can't understand why you don't want to utilize this opportunity.