From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.kernel.org ([198.145.29.99]:51650 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391156AbeIVAor (ORCPT ); Fri, 21 Sep 2018 20:44:47 -0400 Date: Fri, 21 Sep 2018 11:54:34 -0700 From: Eric Biggers To: Mimi Zohar Cc: linux-integrity@vger.kernel.org, Dmitry Kasatkin Subject: Re: [PATCH] security/integrity: remove unnecessary 'init_keyring' variable Message-ID: <20180921185433.GA255965@gmail.com> References: <20180907202515.217716-1-ebiggers@kernel.org> <1537555358.3830.345.camel@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 In-Reply-To: <1537555358.3830.345.camel@linux.ibm.com> Sender: linux-integrity-owner@vger.kernel.org List-ID: On Fri, Sep 21, 2018 at 02:42:38PM -0400, Mimi Zohar wrote: > On Fri, 2018-09-07 at 13:25 -0700, Eric Biggers wrote: > > From: Eric Biggers > > > > The 'init_keyring' variable actually just gave the value of > > CONFIG_INTEGRITY_TRUSTED_KEYRING. We should check the config option > > directly instead. No change in behavior; this just simplifies the code. > > We try to minimize as much as possible "ifdefs" in C code. This > change is moving in the wrong direction. > > Mimi So your preferred approach is to store the values of Kconfig options in variables? That defeats much of the point of having Kconfig options... - Eric