Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3167127pxv; Mon, 12 Jul 2021 10:51:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqjYGvrfW+/YWCXM73H6jSMc11cmAeNQip2N1NHjddTpkLHP7yvFqnAyvQEInenDbUfkAK X-Received: by 2002:a17:906:2bd4:: with SMTP id n20mr306630ejg.390.1626112318885; Mon, 12 Jul 2021 10:51:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626112318; cv=none; d=google.com; s=arc-20160816; b=demmZqJrvEmdn/DNQamOf/n6gDOPC8WXB8qbTnp/KkO098nyw25kjnvGMQQ/llNIVh eaWHXBjEUo1Qb8JgFsOSFBZkEKyj2TJlzGOC1Lmkt5dPHwmMyt+NuNGaEugWaKnaME/6 IafB+BfUkW7dkXN7WNz6aAumyoQ8FyuwBP1g9V0vIxrNNpiQiCtbFpipEbhBhk6HDGo+ /222m9rRlOZHERakccLmHIesdI00lsfdcQmQBot1Hy9sQfcmwDyKWRYpErF4L9OGGwL+ CrowvtPnLBUJBn3XtwVuNb1qsOaCXvFHGcZTx6t1mOJfAcx/LuiV1JTZENsizHcgqm2i VoPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=fFWgzQHjwe/a8IqaPjJxMDhsIF8i/8K0Ya+rGP8ZwYU=; b=IDnpC7aInbQA5p/0jFYwOG6QT837h8kZWVsF+GzbvJnk2pYhNcp105MSbGUVHP+0FK JPDfwxmQDsR6I7QhqTqIBVxxCOB3ZES3SqSZaNaxHFAv96+JS4evnJatDoM34vy3WD8f 5O5OAmbSG/SofVwaV45YZMnMbDGYsolOY67QYgxE+Yy97fuE3Z5U4MhjeNZpCbIZhpcl ED2lA59e/cNfmmY0FRjXCzsJzoDjJrtwtt9TH8T9hIvx+izQCeqr8WFhCsxlp1TKi3Dd r5sHUOnrA6Yy7+9ppUdvVfXovdpnNa1oEr+i17qT8EG6PHgio7XYHVMYMauKMAjgdhUx JmMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UUeMXFBu; 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 jz26si17612695ejc.747.2021.07.12.10.51.35; Mon, 12 Jul 2021 10:51:58 -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=UUeMXFBu; 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 S235673AbhGLRx3 (ORCPT + 99 others); Mon, 12 Jul 2021 13:53:29 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:32088 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232979AbhGLRx2 (ORCPT ); Mon, 12 Jul 2021 13:53:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1626112239; 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=fFWgzQHjwe/a8IqaPjJxMDhsIF8i/8K0Ya+rGP8ZwYU=; b=UUeMXFBuyPHhWg0DJVyc9SsV+NaFNsKupzdD+Qx3/aNsV/G1F7OHFopUMUnD3qXbWEvTlL 8jqaK7kprJn2Qz68w6wN/Bu392Q4p+U7e1P77Mu+w9xtCxpdYo+runzttk2eu/LVngayEi VKTeo6p1vF3fX1kn7eejiexUpvddJPE= 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-296-XQPS2z1LNJaczUXwezog2g-1; Mon, 12 Jul 2021 13:50:38 -0400 X-MC-Unique: XQPS2z1LNJaczUXwezog2g-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id CD65B9F92B; Mon, 12 Jul 2021 17:50:36 +0000 (UTC) Received: from horse.redhat.com (ovpn-114-176.rdu2.redhat.com [10.10.114.176]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0A70B5C1D1; Mon, 12 Jul 2021 17:50:33 +0000 (UTC) Received: by horse.redhat.com (Postfix, from userid 10451) id 9566922054F; Mon, 12 Jul 2021 13:50:32 -0400 (EDT) Date: Mon, 12 Jul 2021 13:50:32 -0400 From: Vivek Goyal To: Theodore Ts'o Cc: Casey Schaufler , Christian Brauner , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, viro@zeniv.linux.org.uk, virtio-fs@redhat.com, dwalsh@redhat.com, dgilbert@redhat.com, casey.schaufler@intel.com, linux-security-module@vger.kernel.org, selinux@vger.kernel.org, miklos@szeredi.hu, gscrivan@redhat.com, jack@suse.cz, Christoph Hellwig Subject: Re: [PATCH v2 1/1] xattr: Allow user.* xattr on symlink and special files Message-ID: <20210712175032.GB502004@redhat.com> References: <20210708175738.360757-1-vgoyal@redhat.com> <20210708175738.360757-2-vgoyal@redhat.com> <20210709091915.2bd4snyfjndexw2b@wittgenstein> <20210709152737.GA398382@redhat.com> <710d1c6f-d477-384f-0cc1-8914258f1fb1@schaufler-ca.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 09, 2021 at 04:36:33PM -0400, Theodore Ts'o wrote: > On Fri, Jul 09, 2021 at 08:34:41AM -0700, Casey Schaufler wrote: > > >> One question, do all filesystem supporting xattrs deal with setting them > > >> on symlinks/device files correctly? > > > Wrote a simple bash script to do setfattr/getfattr user.foo xattr on > > > symlink and device node on ext4, xfs and btrfs and it works fine. > > > > How about nfs, tmpfs, overlayfs and/or some of the other less conventional > > filesystems? > > As a suggestion, perhaps you could take your bash script and turn it > into an xfstests test so we can more easily test various file systems, > both now and once the commit is accepted, to look for regressions? Sounds good. I see there is already an xattr test (generic/062) which is broken after my patch. Current test expects that user.* xattrs will fail on symlink/special device. I will probably have to query kernel version and modify test so that expect failure before a certain version and success otherwise. Thanks Vivek