Return-Path: Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=intel.com (client-ip=192.55.52.136; helo=mga12.intel.com; envelope-from=ed.tanous@intel.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=intel.com Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 45FDxP68LQzDqWp for ; Fri, 31 May 2019 03:25:27 +1000 (AEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 May 2019 10:25:24 -0700 X-ExtLoop1: 1 Received: from hades.jf.intel.com (HELO [10.54.51.78]) ([10.54.51.78]) by orsmga002.jf.intel.com with ESMTP; 30 May 2019 10:25:24 -0700 Subject: Re: U-Boot environment management from userspace To: openbmc@lists.ozlabs.org References: <20190528183802.GH15959@mauery.jf.intel.com> From: Ed Tanous Message-ID: Date: Thu, 30 May 2019 10:25:24 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20190528183802.GH15959@mauery.jf.intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 May 2019 17:25:30 -0000 On 5/28/19 11:40 AM, Vernon Mauery wrote: > > 2) Create yet another daemon that would provide a R/W interface > (probably just using the D-Bus properties interface) that would act as a > manager of U-Boot environment variables. It might even be able to place > an inotify watch to get notified when an external process (fw_setenv) > modifies the environment (like from a script or something) so the D-Bus > properties could send out a PropertiesChanged notification. This would be my preference. It keeps the functionality self contained, and allows at least some security around adjusting parameters, given that said daemon could whitelist/blacklist certain parameters at some point in the future.