Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5549036yba; Mon, 13 May 2019 12:49:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqzzekpWK5QIsMBhh/Hj9KhZG9YlpU3OOD50LP7Ts4jsdStMD3K9KysljD281/xeN5jUVD75 X-Received: by 2002:a63:6ac3:: with SMTP id f186mr33434890pgc.326.1557776987761; Mon, 13 May 2019 12:49:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557776987; cv=none; d=google.com; s=arc-20160816; b=sqXpTHmm60jx6lCPdj+jPskqSVh1/XNX6fiy5Ay2VjWVDceeN02pY4U9IoQ7fPPY3L iw9OWVdV0jzkjISEEMtjlWC4G/IFoi/GDtBHSRKezBOZeN7QhNfX7dayEKoclddY0xIT uuGQ+b/k2BZ2I1udrh9s+gLRs9e1ME2mB8SVwsWoe1mySwRvJGkaaq66Ti4IzoKfvlfS ijtEtvWFqLZeLqCzLTM0Oeu1k3o9EbmUE7l7+/diXcrR9uU9BtaANwA2hpPIWd8PWaac TYgCEk7VdEf8L1iFmNssur3lvDqMV+2Ce0xKaCrHMAWgOFNuoqYONuZVTT+L/vKm75na lv+w== 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=PnldvipHjhFmwZ0wUUzfNwDvS9ln8OuIlkqym4SGAOs=; b=Jys+pwt/RQEs9DnDhjtxHBQ0jLUdCOwoVYbaBGDRbK0o7iXTBgQDnwY9L2NUfmsxtc H6jlMfFk8nGd8McRoE5LwhLcK83OPagGjD0U8ZAYP5aGPR3FNfrDxZ9e1xVBmdlhQbOh brwXcefHjgCi94JxguYBN0U21yFaRExhl1d4FgTnynJ+xDKBMwf69daCirzzxk7g5wMg 2+2pQdDUAoKjm1gnAYaiZoKCV+3hUG6wUwAOOk2JWc8FuRig0EXzUFNt+1LGzzV18Skn mG4n4cNef0u84MJPrlgvhsrfSFrTWg0ajCNBX3astxuR/ZuDNgz/1rcux+pAG1d1xu4h bdPA== 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 e15si17714238pgm.377.2019.05.13.12.49.31; Mon, 13 May 2019 12:49:47 -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 S1726834AbfEMSgp (ORCPT + 99 others); Mon, 13 May 2019 14:36:45 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:58926 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726808AbfEMSgp (ORCPT ); Mon, 13 May 2019 14:36:45 -0400 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x4DIWLcD122347 for ; Mon, 13 May 2019 14:36:44 -0400 Received: from e06smtp03.uk.ibm.com (e06smtp03.uk.ibm.com [195.75.94.99]) by mx0a-001b2d01.pphosted.com with ESMTP id 2sfawwr3pk-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 13 May 2019 14:36:43 -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 19:36:41 +0100 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) 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 19:36:37 +0100 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x4DIaaZE48169038 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 13 May 2019 18:36:36 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 04BB4A406E; Mon, 13 May 2019 18:36:36 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B5484A4059; Mon, 13 May 2019 18:36:34 +0000 (GMT) Received: from localhost.localdomain (unknown [9.80.110.120]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 13 May 2019 18:36:34 +0000 (GMT) Subject: Re: [PATCH v2 0/3] initramfs: add support for xattrs in the initial ram disk From: Mimi Zohar To: Arvind Sankar Cc: Roberto Sassu , Rob Landley , linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-integrity@vger.kernel.org, initramfs@vger.kernel.org Date: Mon, 13 May 2019 14:36:24 -0400 In-Reply-To: <20190513175250.GC69717@rani.riverdale.lan> References: <20190512194322.GA71658@rani.riverdale.lan> <3fe0e74b-19ca-6081-3afe-e05921b1bfe6@huawei.com> <4f522e28-29c8-5930-5d90-e0086b503613@landley.net> <20190513172007.GA69717@rani.riverdale.lan> <20190513175250.GC69717@rani.riverdale.lan> 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: 19051318-0012-0000-0000-0000031B3DE0 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19051318-0013-0000-0000-00002153D1F8 Message-Id: <1557772584.4969.62.camel@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-05-13_11:,, 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=975 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1905130126 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > How does this work today then? Is it actually the case that initramfs > > just cannot be used on an IMA-enabled system, or it can but it leaves > > the initramfs unverified and we're trying to fix that? I had assumed the > > latter. > Oooh, it's done not by starting IMA appraisal later, but by loading a > default policy to ignore initramfs? Right, when rootfs is a tmpfs filesystem, it supports xattrs, allowing for finer grained policies to be defined.  This patch set would allow a builtin IMA appraise policy to be defined which includes tmpfs. Mimi