Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4588305yba; Sun, 12 May 2019 17:08:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqzK4y4dMz1GMTSIximlHBPeLWH3Efwe5BsBqSHbyivvNp/5gBKW35Re6qRz/cwobCJPbrgz X-Received: by 2002:a63:6ac1:: with SMTP id f184mr28419814pgc.25.1557706082160; Sun, 12 May 2019 17:08:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557706082; cv=none; d=google.com; s=arc-20160816; b=ddvVRPaq81e8JNUSh3A8WQ+k4M8licEd5MBsQeigboGqcX6rJJ9UDy75j9JW4vsGLY rfUFOabfycfuFlfTJFSisrKkFw13QqPFnji1S03wUxbU34M7HzuAtOVgHf0lzm0NPq9D cq8RDJZm3W+ouM3Rvx6RoQSxRm1qRDgk04cS4xbzYA9uhtPrjBwd19zGo6nQkeqXf6DF 8sSC7oVCH2FgHzeGWjEZXqpTkB28yng+60lRA2Nt5kMihuq3hVXdS9iOGdNkUitTY4/P hH1NWrnDjlwH+slFunSVQOPKIQRDW7Sr35osn86ecssZbswAPPnqSjrxM3Ums1oIokoj zzjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:references:in-reply-to:date:cc:to:from:subject; bh=1GKgC2LID6H33lvomiegYzWQvUBv0aZ96LWKeWMeuFM=; b=t6uFNK3UYU5J8C/2CTaVqs0bDagitvIXc/ZjqgGuccyaC1OyqQQPS3DO5Jg30jodT2 z/izI2SGLUxySBFO/CAZNq6hD+4Q1dFKss9+HfdjS734PJErmkWNm4CBbCDmTIeQNbUk tNs0bGTdkKxGi1vnM4gKgaySjaxgnOCZWaJS6ObuP+OYFCqW2HkSfd5RKgqeRx0afs9a uQzotMT7DDyDXn4RcxMBdaUYrMxmPlj81FFxd60CJ7OzvO5iFxqRKixyVT6An1N3U/Xz JqNjPGnip+vNdi31VnYST2oUgfg2k/qETIJWH/jUuWVdW7ceWhOEVNs1mMmme0Oag7vd Hoow== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ch16si15773930plb.76.2019.05.12.17.07.46; Sun, 12 May 2019 17:08:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727150AbfEMACx (ORCPT + 99 others); Sun, 12 May 2019 20:02:53 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:47112 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727063AbfEMACx (ORCPT ); Sun, 12 May 2019 20:02:53 -0400 Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x4D01dxP123280 for ; Sun, 12 May 2019 20:02:51 -0400 Received: from e06smtp03.uk.ibm.com (e06smtp03.uk.ibm.com [195.75.94.99]) by mx0a-001b2d01.pphosted.com with ESMTP id 2setavvfd0-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sun, 12 May 2019 20:02:51 -0400 Received: from localhost by e06smtp03.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 13 May 2019 01:02:49 +0100 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp03.uk.ibm.com (192.168.101.133) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Mon, 13 May 2019 01:02:43 +0100 Received: from d06av24.portsmouth.uk.ibm.com (d06av24.portsmouth.uk.ibm.com [9.149.105.60]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x4D02gCQ54722628 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 13 May 2019 00:02:42 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BF14442049; Mon, 13 May 2019 00:02:42 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id CB05642042; Mon, 13 May 2019 00:02:40 +0000 (GMT) Received: from localhost.localdomain (unknown [9.80.95.158]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 13 May 2019 00:02:40 +0000 (GMT) Subject: Re: [PATCH v2 0/3] initramfs: add support for xattrs in the initial ram disk From: Mimi Zohar To: Dominik Brodowski , hpa@zytor.com Cc: Roberto Sassu , viro@zeniv.linux.org.uk, linux-security-module@vger.kernel.org, linux-integrity@vger.kernel.org, initramfs@vger.kernel.org, linux-api@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, zohar@linux.vnet.ibm.com, silviu.vlasceanu@huawei.com, dmitry.kasatkin@huawei.com, takondra@cisco.com, kamensky@cisco.com, arnd@arndb.de, rob@landley.net, james.w.mcmechan@gmail.com Date: Sun, 12 May 2019 20:02:30 -0400 In-Reply-To: <20190512153105.GA25254@light.dominikbrodowski.net> References: <20190512153105.GA25254@light.dominikbrodowski.net> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.20.5 (3.20.5-1.fc24) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 19051300-0012-0000-0000-0000031AE6B3 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19051300-0013-0000-0000-0000215376C7 Message-Id: <1557705750.10635.264.camel@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-05-12_14:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1905120180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2019-05-12 at 17:31 +0200, Dominik Brodowski wrote: > On Sun, May 12, 2019 at 08:52:47AM -0400, Mimi Zohar wrote: > > It's too late. The /init itself should be signed and verified. > > Could you elaborate a bit more about the threat model, and why deferring > this to the initramfs is too late? The IMA policy defines a number of different methods of identifying which files to measure, appraise, audit.[1]  Without xattrs, the granularity of the policy rules is severely limited.  Without xattrs, a filesystem is either in policy, or not. With an IMA policy rule requiring rootfs (tmpfs) files to be verified, then /init needs to be properly labeled, otherwise /init will fail to execute. Mimi [1] Documentation/ABI/testing/ima_policy