Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3983901yba; Sun, 12 May 2019 02:19:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqyA62IVf4Kba/2hLEUjvQDY81QZMh80OSQLU3HciEltjkAYVfjoi67gCrNpHT2tnThKP4iy X-Received: by 2002:a63:903:: with SMTP id 3mr12408677pgj.400.1557652742479; Sun, 12 May 2019 02:19:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557652742; cv=none; d=google.com; s=arc-20160816; b=bFzBeHokvDMvTKHeoPDlLEc1LjGFO3142Lmps/f06OyrwW+YTc5cN5kRPs2bMLhFRd DVSbFKY+mjjRs+CWq/9f80Z2qJLbeBftn9jB1txB7kQ9mLSed//W8NNwFFdGX9Z9X4Fi q6CDveUb78gvB/J3k+3ZoHEeteDZ2ZvIGL9zBU4O+sRuQZ3U4QTlZCZqmT7XzqGmoMvB ef0nU2D53I6QlKc895bEme1+hrAk2uuQ3BBveLfCC6mgE6ZY+xurb8AQdunHdRkwTFQW gFo3G2KwNr0iRrqPNHbbFRhChyNDUMNjSPF7PkYBFPLkGXIGnaniqBLOSIb6vfSEOY4L rNIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=iHpJtaa7Lz3bUbmLfFHJXx1Ch1Bi735vqRVNY/4SADI=; b=bE6eqfF30Zqc9QA7zairMhFDbJ3ii2er11M8fWGktoT0Rjw3CvIvB0HJ5fR5WgXzOn yLf5Ue6NTrSHbJQVSfFUTQ4wITCE4ytTJnL+v05xkaWN9iTTeejxniXaKtVXF6xNJx2g mIb3B84p0/NzU4DG2N6uleLIHJoUGlacaxdqYaagcdxyb2I3gLtWGVpbuKBVATNokO7e b4LnL4byakOcZ6hpnnd/GMqJ6IVQqxs3YhPC23aMBrEI7pgvor67D3A+3fHkv8/VHeRC 2Jm8fNCxF+YBeiGhS0Rmp10hasIXSfsxVCML8fY5E0pdQQbFxJj1JrUUAAXgNfcPU9lx +hdA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3si13658664pll.281.2019.05.12.02.18.44; Sun, 12 May 2019 02:19: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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726536AbfELJRv (ORCPT + 99 others); Sun, 12 May 2019 05:17:51 -0400 Received: from isilmar-4.linta.de ([136.243.71.142]:35594 "EHLO isilmar-4.linta.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726031AbfELJRv (ORCPT ); Sun, 12 May 2019 05:17:51 -0400 Received: by isilmar-4.linta.de (Postfix, from userid 1000) id D43142005B3; Sun, 12 May 2019 09:17:48 +0000 (UTC) Date: Sun, 12 May 2019 11:17:48 +0200 From: Dominik Brodowski To: 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 Subject: Re: [PATCH v2 0/3] initramfs: add support for xattrs in the initial ram disk Message-ID: <20190512091748.s6fvy2f5p2a2o6ja@isilmar-4.linta.de> References: <20190509112420.15671-1-roberto.sassu@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190509112420.15671-1-roberto.sassu@huawei.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Thanks, Dominik