Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756966AbaGBSkW (ORCPT ); Wed, 2 Jul 2014 14:40:22 -0400 Received: from mail-we0-f178.google.com ([74.125.82.178]:46907 "EHLO mail-we0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752687AbaGBSkT (ORCPT ); Wed, 2 Jul 2014 14:40:19 -0400 MIME-Version: 1.0 In-Reply-To: <53B45095.80102@intel.com> References: <72d68808fd8db2b896a459b120f3e550e5f976c1.1404245510.git.d.kasatkin@samsung.com> <53B45095.80102@intel.com> Date: Wed, 2 Jul 2014 21:40:17 +0300 Message-ID: Subject: Re: [PATCH v2 1/3] ima: use ahash API for file hash calculation From: Dmitry Kasatkin To: Dave Hansen Cc: Mimi Zohar , linux-ima-devel@lists.sourceforge.net, linux-security-module , "linux-kernel@vger.kernel.org" , linux-crypto , Dmitry Kasatkin Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2 July 2014 21:33, Dave Hansen wrote: > On 07/01/2014 01:12 PM, Dmitry Kasatkin wrote: >> + ima_ahash= [IMA] Asynchronous hash usage parameters >> + Format: >> + Set the minimal file size when use asynchronous hash. >> + If ima_ahash is not provided, ahash usage is disabled. > > ... another boot option... > > Can we just set this to something sane, and then make a sysctl or > something else at runtime to tweak it? The kernel won't use IMA much > before userspace comes up, and it can surely live with a slightly > suboptimal tuning until the boot scripts have a chance to go bang the > tunable. > > We should reserve command-line parameters for things that really need > tweaking in early boot or are _needed_ to boot. Thanks... Good that you commented about it. I thought to have module_param, but as IMA is not a module, ended up with __setup.. Quite many always-builtin stuff use module_param... Also in LSM... Runtime can then tweak it for better performance... Is module param good enough or it should be sysctl? - Dmitry -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/