Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4132429yba; Sun, 12 May 2019 05:54:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqzOa8C6JoWIy8NAUEpyBPgm9qYlnbbwkyIPK6VqW5PfjvIbHePYwqRfjD9GlsreWYvI9HIJ X-Received: by 2002:aa7:860a:: with SMTP id p10mr10200721pfn.214.1557665668906; Sun, 12 May 2019 05:54:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557665668; cv=none; d=google.com; s=arc-20160816; b=BHSDfkvOYcS+mn15tmqQlgY6PLszQ9BdzW6ANMsuImGB3P9pzdcw25ikvBNozYk1gh 9MrLzeXRCyh0kcKp5EcVD1YuELsXugmraUKJXPezNQfPASs24kHQL2E5qdqY8JKQpqfd SQgeWnDf6S0hUg5CKqihnk7Kk0Y7pVcjOIWltNbL6uJSaC1+hbmmlE19+qqNb9o98G0G ijJjrLzuMHTR7aB98lJMOPLEdzKQGJl56xDHmf6Epn8Jg8O/Hxh/GMEbMpdKP5Jvxudw SfqUxxSwUACJp16IBwXfC5y/6Ajt6S9VryWNs0oXPBybXfH60V1h0w75S0LU0sn4ZY4c RwyA== 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=0DYi59dO7b7JYy7DvnBHWZrscALeTwWvuw3v26oWYzo=; b=gQyku11Abg1pMdQ26ozdILSwowqAA7iWjkd3nss04NUAGpvgSulB34YrEuJQ2U6GuK 1S6W8ctn5Ml51FZDOiSiJbJkyUG5+HtXCTelW4fbhwLdGaVwJSjWKBPeK6oUf1euWbEH 577Zdj3J4zBnT5Llix4GhdiGk192EhdRL0pPKmOIMWRexOl1/p1eB+xRjbPNZ2/6fQWg eChioroheNw0uItny3UnLJCJLshiNrW9E36Bi+BKvlksL6eR1XFHqtTKcaa1u8/AvyEj HiwSiIIK8L8Kvib7Dc4qCwczbHcoApbz/g4skcJ9evf7VnFg6HUsIR3ENF4uBrTyAowQ HppA== 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 s13si13820911pgs.446.2019.05.12.05.54.13; Sun, 12 May 2019 05:54:28 -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 S1726805AbfELMxK (ORCPT + 99 others); Sun, 12 May 2019 08:53:10 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:43306 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726550AbfELMxK (ORCPT ); Sun, 12 May 2019 08:53:10 -0400 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x4CCpYpg077580 for ; Sun, 12 May 2019 08:53:09 -0400 Received: from e06smtp07.uk.ibm.com (e06smtp07.uk.ibm.com [195.75.94.103]) by mx0a-001b2d01.pphosted.com with ESMTP id 2seaev662c-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sun, 12 May 2019 08:53:09 -0400 Received: from localhost by e06smtp07.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sun, 12 May 2019 13:53:06 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) by e06smtp07.uk.ibm.com (192.168.101.137) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Sun, 12 May 2019 13:53:01 +0100 Received: from d06av24.portsmouth.uk.ibm.com (d06av24.portsmouth.uk.ibm.com [9.149.105.60]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x4CCr0bW60817534 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 12 May 2019 12:53:00 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 786AE42047; Sun, 12 May 2019 12:53:00 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 83C6442041; Sun, 12 May 2019 12:52:58 +0000 (GMT) Received: from localhost.localdomain (unknown [9.80.95.158]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Sun, 12 May 2019 12:52:58 +0000 (GMT) Subject: Re: [PATCH v2 0/3] initramfs: add support for xattrs in the initial ram disk From: Mimi Zohar To: Dominik Brodowski , Roberto Sassu Cc: 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, hpa@zytor.com, arnd@arndb.de, rob@landley.net, james.w.mcmechan@gmail.com Date: Sun, 12 May 2019 08:52:47 -0400 In-Reply-To: <20190512091748.s6fvy2f5p2a2o6ja@isilmar-4.linta.de> References: <20190509112420.15671-1-roberto.sassu@huawei.com> <20190512091748.s6fvy2f5p2a2o6ja@isilmar-4.linta.de> 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: 7bit X-TM-AS-GCONF: 00 x-cbid: 19051212-0028-0000-0000-0000036CD1EF X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19051212-0029-0000-0000-0000242C5BDA Message-Id: <1557665567.10635.222.camel@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-05-12_08:,, 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=889 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1905120097 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 11:17 +0200, Dominik Brodowski wrote: > On Thu, May 09, 2019 at 01:24:17PM +0200, Roberto Sassu wrote: > > This proposal consists in marshaling pathnames and xattrs in a file called > > .xattr-list. They are unmarshaled by the CPIO parser after all files have > > been extracted. > > Couldn't this parsing of the .xattr-list file and the setting of the xattrs > be done equivalently by the initramfs' /init? Why is kernel involvement > actually required here? It's too late. The /init itself should be signed and verified. Mimi