Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp969564pxb; Sun, 21 Feb 2021 06:48:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJzvM4FtzqrxsgZEEUUjCW1qbOyBmBv7J/HD3I0asifDH1Z6NQDvue/LT0RO7OP52+ox3RIb X-Received: by 2002:a17:906:3ac3:: with SMTP id z3mr16926743ejd.449.1613918915429; Sun, 21 Feb 2021 06:48:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613918915; cv=none; d=google.com; s=arc-20160816; b=Fp0UZZonLXQ4mGiSdzNc5xFXVaZ9PD7KGDARBZbic82N/epK37V8oR1qufBvvHErxW QwEpm/zRqWxBvuZMWaaVUuBnixNZPJezzXDPPhJheWJddUiSDZG9sYQ8VuKe1WzoDGYe xjJ2rijX6rn1IG6pet18l/I97LEH4pYw/K2GKN1Robu5VWb+U1CeozkPZQt+AhVbDMxT HBKDIiflG/ivHioIe3ED7YDbymbNpb6nKgUBW27rlUeVGhjcv+pKsOcwix6R6lssaFYI laMHXq++UvSqwVdWb1EhYPMswF1bU2a65bjfK21TPbXkd8+oHGIFHrD/v9Javxz8WkDc 6CfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature:dkim-filter; bh=o85pGxzQ4oK290wfKdH6EJiECD84oDzWhP9pNrJyQy4=; b=A0vztruirHbKR4Mvvo8pc7yHL7HTnR0dTlJv0HJPEnLQkx8fpdGxdqeYe9+ur5yIM4 Bgq4hLue7l3OtJlvYv1pHMq/R3vP67GlzFvdQ+95k6KqeVEoGU5txVcdgJ4TohlTKXbk nAja35wE414+9Gk6c3bTw9anTFTqDlHxDT9a6XkCdhqqiVNTXKUpgtoUWuQFaHHvt42a Q0vVcvFAnXAMokK9+I4y/HNWUyH4bD6o8JZEdOoHGt7Tl3PdK4cuofc021uJymQBwjhB GkEWXQzBQlefu7M19Yx+LZY4XBZzZI6r8V5rCwyG38yS3pTQan2IKmD5lH5ik9e7Bv2c wsxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=QqRZFbC4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jg4si9713222ejc.313.2021.02.21.06.48.11; Sun, 21 Feb 2021 06:48:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=QqRZFbC4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230062AbhBUOrO (ORCPT + 99 others); Sun, 21 Feb 2021 09:47:14 -0500 Received: from conssluserg-04.nifty.com ([210.131.2.83]:26424 "EHLO conssluserg-04.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230031AbhBUOrK (ORCPT ); Sun, 21 Feb 2021 09:47:10 -0500 Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) (authenticated) by conssluserg-04.nifty.com with ESMTP id 11LEk5sq002268; Sun, 21 Feb 2021 23:46:05 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com 11LEk5sq002268 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1613918765; bh=o85pGxzQ4oK290wfKdH6EJiECD84oDzWhP9pNrJyQy4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=QqRZFbC48IlYJOMwW3CziNxzkp3/g0y9UjSkHc/esu91zB7amWFuUUrpyiy8y0deH UtZxHAJ2qN/0yyb2/ZuAQxBf0AOU9bZT1Jtg7W1mha5y0eC2f7ieTo6UJaYk3BTDM1 /l8K+vqVAf2EPX6I0tW3ZXOKs0aUcCavTjEcswxx3LVnvLetVdgezAC6LEYRXhOk4s fVJj3tM7c1bJ8QSqfiCncKBPrY+jFmLYl6dy8O7+Hp+mL67RjXTdgFH+SqwQ340qjX dVuWVGJ1kV8IXIXY4IhNPrvpp0M89VuauopQdc9MufOzaIQRkiX+5BWWDnkvAmPuge MDGSPfjkCDDow== X-Nifty-SrcIP: [209.85.216.51] Received: by mail-pj1-f51.google.com with SMTP id d2so7077088pjs.4; Sun, 21 Feb 2021 06:46:05 -0800 (PST) X-Gm-Message-State: AOAM532TaHxlJI2wMbaHb/+FJMjiinpX/mjU4ZPvVesyCR2/Rrb/0C5y HHSc516w8ufFFSc11BpWZOQSAcxjh9NnjhUz46M= X-Received: by 2002:a17:90a:5510:: with SMTP id b16mr18849598pji.87.1613918764601; Sun, 21 Feb 2021 06:46:04 -0800 (PST) MIME-Version: 1.0 References: <20210215181511.2840674-1-mic@digikod.net> <20210215181511.2840674-3-mic@digikod.net> In-Reply-To: From: Masahiro Yamada Date: Sun, 21 Feb 2021 23:45:26 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 2/3] kconfig: Ask user if string needs to be changed when dependency changed To: =?UTF-8?B?TWlja2HDq2wgU2FsYcO8bg==?= Cc: Casey Schaufler , James Morris , "Serge E . Hallyn" , Nicolas Iooss , Linux Kbuild mailing list , Linux Kernel Mailing List , linux-security-module , =?UTF-8?B?TWlja2HDq2wgU2FsYcO8bg==?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 21, 2021 at 8:09 PM Micka=C3=ABl Sala=C3=BCn = wrote: > > > On 21/02/2021 09:47, Masahiro Yamada wrote: > > On Tue, Feb 16, 2021 at 3:14 AM Micka=C3=ABl Sala=C3=BCn wrote: > >> > >> From: Micka=C3=ABl Sala=C3=BCn > >> > >> Content of string configuration may depend on related kernel > >> configurations. Modify oldconfig and syncconfig to inform users about > >> possible required configuration update and give them the opportunity t= o > >> update it: > >> * if dependencies of this string has changed (e.g. enabled or disabled= ), > >> * and if the current value of this string is different than the (new) > >> default one. > >> > >> This is particularly relevant for CONFIG_LSM which contains a list of > >> LSMs enabled at boot, but users will not have a chance to update this > >> list with a make oldconfig. > > > > If CONFIG_LSM already exists in the .config, > > oldconfig does not show a prompt. > > This is the expected behavior. > > It is not the behavior wished for LSM stacking. Because LSM is doing wrong. > > > > You are trying to fix your problem in a wrong way. > > NACK. > > What do you suggest to ensure that users will be asked to update the > CONFIG_LSM string if they add or remove an LSM? Fix it in the security subsystem. Hint: See 050e9baa9dc9fbd9ce2b27f0056990fc9e0a08a0 --=20 Best Regards Masahiro Yamada