Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp979737ybh; Tue, 21 Jul 2020 12:39:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDbR+ZBnCAfeBbavZrtEkFDvYkTW17AJTAFyV0X0jnA41OBpUtTRxV3U5OpAKE6JGDQwjQ X-Received: by 2002:a05:6402:ca1:: with SMTP id cn1mr26872701edb.223.1595360363556; Tue, 21 Jul 2020 12:39:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595360363; cv=none; d=google.com; s=arc-20160816; b=wxz6Xme7g1wKTb0nhGbbZXOlCDAxWMwJTc2MWNxzU+HLqJf9HDdHwN/HUIfpSvvDs+ +V5dyH+ctbxivzQZWqaSR6tevIeaNEpHeYIbjIrGp3dZdAzkeJDPSYFS9Cs3W+/XKhQG sb9XfjQu2bNopiWi0DEOSZfHgTxCIhmQX4X32HTYB3LyXfInQcVcmS/Dl7EeBBFK8kW0 cRKNmX2+8C/9MWP+mDgFp2QLmhViw+mss1qqCrkVkWDLHYHmBlYi4KtfarahkkqHrwrD qyVnq6Ag9g7Z9MhDSRYDc5rxIbfcZOqh3UeD1li82O9tuyORpz0v9bImbhvnOHHkashQ ZdSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition:in-reply-to :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=W/5FQTzNceZ8+x82aqOM3eIUsHFNM5pTOLDBmqIIiW0=; b=dTWjmH/++SNz+A1+t8jHGTbxQt//ZQkzz475GUTlzhkdQde+5rVufldMpUINjeMwHK YYAxMzZaBH5615/u3A/ydHHNKO9Tjb624fa81OkB95sPfexf54v/kgHVBFaEa9GiPvEW 4JBudih/SGurWmGNCeDf4A1BU34qr4PbE028kwPozUPb8FlqOGn2xp+yHV90XS117HSx FRct+bqBarF24leXTr1iSyl4xmSs8mCWl5CJpoOGQEg2vA4MvgOMOHR55uGMgwz2EnHw BlUQtOdyGAeptAVa5wg0hk0ynY0r3kHmzNRs6U7ss1ac2Hv/N/naUtFqGzjf+jajkV8r AleA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AC9K9Ghw; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g20si12836704edq.447.2020.07.21.12.39.00; Tue, 21 Jul 2020 12:39:23 -0700 (PDT) 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=@redhat.com header.s=mimecast20190719 header.b=AC9K9Ghw; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730979AbgGUTil (ORCPT + 99 others); Tue, 21 Jul 2020 15:38:41 -0400 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:24748 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730973AbgGUTij (ORCPT ); Tue, 21 Jul 2020 15:38:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1595360318; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=W/5FQTzNceZ8+x82aqOM3eIUsHFNM5pTOLDBmqIIiW0=; b=AC9K9GhwSEdL9yG8uPlKHRZOxTPAdHoBB1nHOiUwJKxcOv4GTfMAuVDQ/53fXGz+BP4f1c rHk6/zV/X4WPqQmgwLhWCbAmjO4Q0o07/ZBzPmhPRHufNnYv85SCwPyHtPz0qbWfvKW17r lIQsN02626xMxvJ/N20HT5Rr6hCXpxo= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-192-KyfIS5FeMT-drxH4SXRg7A-1; Tue, 21 Jul 2020 15:38:33 -0400 X-MC-Unique: KyfIS5FeMT-drxH4SXRg7A-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D224680BCAE; Tue, 21 Jul 2020 19:38:31 +0000 (UTC) Received: from localhost (ovpn-116-10.gru2.redhat.com [10.97.116.10]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3B898756BE; Tue, 21 Jul 2020 19:38:31 +0000 (UTC) Date: Tue, 21 Jul 2020 16:38:30 -0300 From: Bruno Meneguele To: Mimi Zohar Cc: Nayna , linux-kernel@vger.kernel.org, x86@kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-integrity@vger.kernel.org, erichte@linux.ibm.com, nayna@linux.ibm.com, stable@vger.kernel.org Subject: Re: [PATCH v6] ima: move APPRAISE_BOOTPARAM dependency on ARCH_POLICY to runtime Message-ID: <20200721193830.GE2716@glitch> References: <20200713164830.101165-1-bmeneg@redhat.com> <1595257015.5055.8.camel@linux.ibm.com> <20200720153841.GG10323@glitch> <1595352376.5311.8.camel@linux.ibm.com> MIME-Version: 1.0 In-Reply-To: <1595352376.5311.8.camel@linux.ibm.com> X-PGP-Key: http://keys.gnupg.net/pks/lookup?op=get&search=0x3823031E4660608D X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="k3qmt+ucFURmlhDS" Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --k3qmt+ucFURmlhDS Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 21, 2020 at 01:26:16PM -0400, Mimi Zohar wrote: > On Mon, 2020-07-20 at 12:38 -0300, Bruno Meneguele wrote: > > On Mon, Jul 20, 2020 at 10:56:55AM -0400, Mimi Zohar wrote: > > > On Mon, 2020-07-20 at 10:40 -0400, Nayna wrote: > > > > On 7/13/20 12:48 PM, Bruno Meneguele wrote: > > > > > The IMA_APPRAISE_BOOTPARAM config allows enabling different "ima_= appraise=3D" > > > > > modes - log, fix, enforce - at run time, but not when IMA archite= cture > > > > > specific policies are enabled. =A0This prevents properly labeling= the > > > > > filesystem on systems where secure boot is supported, but not ena= bled on the > > > > > platform. =A0Only when secure boot is actually enabled should the= se IMA > > > > > appraise modes be disabled. > > > > > > > > > > This patch removes the compile time dependency and makes it a run= time > > > > > decision, based on the secure boot state of that platform. > > > > > > > > > > Test results as follows: > > > > > > > > > > -> x86-64 with secure boot enabled > > > > > > > > > > [ 0.015637] Kernel command line: <...> ima_policy=3Dappraise_t= cb ima_appraise=3Dfix > > > > > [ 0.015668] ima: Secure boot enabled: ignoring ima_appraise=3D= fix boot parameter option > > > > > > > >=20 > > > Is it common to have two colons in the same line? =A0Is the colon bei= ng > > > used as a delimiter when parsing the kernel logs? =A0Should the secon= d > > > colon be replaced with a hyphen? =A0(No need to repost. =A0I'll fix i= t > > > up.) > > > =A0 > >=20 > > AFAICS it has been used without any limitations, e.g: > >=20 > > PM: hibernation: Registered nosave memory: [mem 0x00000000-0x00000fff] > > clocksource: hpet: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns= : 133484873504 ns > > microcode: CPU0: patch_level=3D0x08701013 > > Lockdown: modprobe: unsigned module loading is restricted; see man kern= el_lockdown.7 > > ... > >=20 > > I'd say we're fine using it. >=20 > Ok. =A0FYI, it's now in next-integrity. >=20 > Mimi >=20 Thanks Mimi. --=20 bmeneg=20 PGP Key: http://bmeneg.com/pubkey.txt --k3qmt+ucFURmlhDS Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEdWo6nTbnZdbDmXutYdRkFR+RokMFAl8XRDUACgkQYdRkFR+R okOv3QgAidrD9B9w904OYqq3pVlZyT8GUdDpbIr0jliOvPKjHKVooNHQemfJhGU+ HzoVi2pG8ARlFC4elJBAwVXR8S9KWCT/xNL9C6N0VMg8FDik0TjmMJ0DRwh4s3oZ oriQmx4vxaS4eNEfh5gBJrG4EwJdH2rCrbWtc4ojOzEhXE06xCsK9SN9PHy4x2Gp zMleiQuD/YVOQK5+A3DII5/BQquL5r5zcwmZ82jho8dZGo5Ot/wc0xq6W5dSLdJw 7EScY58JI/z7H0JbxQuUG3qVmQNa4pVVx9v75cyoTwn5UeZ7XtOvshiO0pRY7M3z 8xueI7dSvd0gv2/Z6BsTFphHrfjQVw== =mPff -----END PGP SIGNATURE----- --k3qmt+ucFURmlhDS--